feat: make API rate limits configurable via env vars (#1204)

* feat: make API rate limits configurable via env vars
This commit is contained in:
Darwin Correa
2026-08-20 10:22:24 -05:00
committed by GitHub
parent 9d9731c7ce
commit a050153bcd
3 changed files with 10 additions and 2 deletions

View File

@@ -8,4 +8,8 @@ return [
'basic_auth_username' => env('GOTENBERG_BASIC_AUTH_USERNAME'),
'basic_auth_password' => env('GOTENBERG_BASIC_AUTH_PASSWORD'),
],
'api' => [
'authenticated' => (int) env('API_RATE_LIMIT_AUTH_PER_MINUTE', 200),
'guest' => (int) env('API_RATE_LIMIT_GUEST_PER_MINUTE', 60),
],
];