add rate limiting configuration for authenticated and unauthenticated requests
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 55s
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 55s
This commit is contained in:
12
.env.example
12
.env.example
@@ -11,3 +11,15 @@ DATABASE_NAME=emly
|
||||
# API Keys
|
||||
API_KEY=key-one
|
||||
ADMIN_KEY=admin-key-one
|
||||
|
||||
# Rate Limiting (unauthenticated: no X-API-Key / X-Admin-Key)
|
||||
RL_UNAUTH_MAX_REQS=10
|
||||
RL_UNAUTH_WINDOW=5m
|
||||
RL_UNAUTH_MAX_FAILS=5
|
||||
RL_UNAUTH_BAN_DUR=15m
|
||||
|
||||
# Rate Limiting (authenticated: X-API-Key or X-Admin-Key present)
|
||||
RL_AUTH_MAX_REQS=100
|
||||
RL_AUTH_WINDOW=1m
|
||||
RL_AUTH_MAX_FAILS=20
|
||||
RL_AUTH_BAN_DUR=5m
|
||||
|
||||
Reference in New Issue
Block a user