Skip to content

Commit f09468f

Browse files
committed
chore(env): add rate limiting configuration variables
- Add new environment variables for rate limiting configuration - Include settings for /auth/request-code and /data API endpoints - Specify limit and time window for each endpoint
1 parent c19ec59 commit f09468f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@
4343
# - If an admin with this email already exists, nothing changes.
4444
# This provides a secure way to set or recover the admin account.
4545
# OVERRIDE_ADMIN_EMAIL="[email protected]"
46+
47+
# --- Rate Limiting ---
48+
# Configuration for the /auth/request-code endpoint.
49+
RATE_LIMIT_REQUEST_CODE_LIMIT=3
50+
RATE_LIMIT_REQUEST_CODE_WINDOW_HOURS=24
51+
52+
# Configuration for the /data API endpoints.
53+
RATE_LIMIT_DATA_API_LIMIT=1000
54+
RATE_LIMIT_DATA_API_WINDOW_MINUTES=60

0 commit comments

Comments
 (0)