mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
feat(validation): implement validateAnnotationStrokes function for safe annotation data handling
feat(rate-limit): add TRUSTED_PROXY_MODE for configurable proxy header trust feat(comments): validate annotation data structure in comment routes and components
This commit is contained in:
@@ -74,6 +74,14 @@ NODE_ENV="development"
|
||||
# Disable all app-level rate limiting for local testing. Leave unset to keep rate limiting enabled.
|
||||
# Accepted truthy values: "true", "1", "yes", "on"
|
||||
# DISABLE_RATE_LIMIT="true"
|
||||
|
||||
# Trusted reverse proxy mode — controls which headers getClientIp() trusts for rate limiting.
|
||||
# Set this only when you have confirmed that your proxy strips/overwrites client-supplied headers.
|
||||
# cloudflare — trust cf-connecting-ip (Cloudflare edge in front of the origin)
|
||||
# nginx — trust x-real-ip / last x-forwarded-for (Nginx real_ip_header with set_real_ip_from)
|
||||
# Leave unset for local dev or when no trusted proxy is in place.
|
||||
TRUSTED_PROXY_MODE="cloudflare"
|
||||
|
||||
# Admin emails for accessing the /admin panel (comma separated list)
|
||||
# e.g., "[email protected],[email protected]"
|
||||
ADMIN_EMAILS=""
|
||||
|
||||
Reference in New Issue
Block a user