mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat(env): add trusted proxy mode configuration for rate limiting
This commit is contained in:
@@ -21,6 +21,13 @@ OPENFRAME_ENABLE_BUNNY_UPLOADS="false"
|
|||||||
OPENFRAME_REQUIRE_INVITE_CODE="false"
|
OPENFRAME_REQUIRE_INVITE_CODE="false"
|
||||||
SELF_HOSTED_AUTO_CREATE_BUCKET="true"
|
SELF_HOSTED_AUTO_CREATE_BUCKET="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="nginx"
|
||||||
|
|
||||||
# MinIO-backed S3 storage
|
# MinIO-backed S3 storage
|
||||||
MINIO_ROOT_USER="replace-with-minio-root-user"
|
MINIO_ROOT_USER="replace-with-minio-root-user"
|
||||||
MINIO_ROOT_PASSWORD="replace-with-strong-minio-password"
|
MINIO_ROOT_PASSWORD="replace-with-strong-minio-password"
|
||||||
|
|||||||
Reference in New Issue
Block a user