[CentOS7] Laravel API 리밋 조절(429: Too Many Requests)


[CentOS7] Laravel API 리밋 조절(429: Too Many Requests)

API 리밋 조절 # "app/http/Kernel.php" 파일을 연후 수정 # "$middlewareGroups" 그룹 하단 "API throttle" 수정 'api' => [ // 1분간 60회 요청 허용 'throttle:60,1', \Illuminate\Routing\Middleware\SubstituteBindings::class, ], => 'api' => [ // 1분간 120회 요청 허용 'throttle:120,1', \Illuminate\Routing\Middleware\SubstituteBindings::class, ], 예외 설정 # 위 설정이 적용이 안되는 경우에는 따로 "'throttle' => ['throttle:60,1']" 추가하여 전체 적용으로 테스트 합니다. protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\M...


#429 #toomany #laravel #api횟수 #api허용 #api제한 #api요청 #api리밋 #api #라라벨

원문링크 : [CentOS7] Laravel API 리밋 조절(429: Too Many Requests)