From 29cd115944628cfa36dc0b2aa43e206516eb7760 Mon Sep 17 00:00:00 2001 From: Shlee Date: Thu, 22 Oct 2026 02:07:06 +1030 Subject: [PATCH] Update comments in .env.docker.example Clarified comments regarding TRUSTED_PROXY and TRUST_PROXIES settings. --- .env.docker.example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.docker.example b/.env.docker.example index bbdf6492e..e71a24c05 100644 --- a/.env.docker.example +++ b/.env.docker.example @@ -36,15 +36,15 @@ SESSION_DOMAIN=null # Keep as null unless required for sharing session cookies w # TRUSTED_PROXY (Required) # Read by the serversideup FrankenPHP image. -# cloudflare (default) - trust Cloudflare ranges (CF-Connecting-IP) + Docker networks +# local (default) - trust only private/Docker network ranges (X-Forwarded-For) +# cloudflare - trust Cloudflare ranges (CF-Connecting-IP) + Docker networks # sucuri - trust Sucuri WAF ranges (X-Forwarded-For) + Docker networks -# local - trust only private/Docker network ranges (X-Forwarded-For) # off - disable trusted proxy handling TRUSTED_PROXY="local" # Trusted Proxies (Don't touch) -# TRUST_PROXIES is read by Laravel's TrustProxies middleware. The serversideup -# web server (Caddy) already validates the proxy before the request reaches PHP. +# TRUST_PROXIES is read by Laravel's TrustProxies middleware. The serversideup web server (Caddy) +# already validates the proxy before the request reaches PHP via the TRUSTED_PROXY value. TRUST_PROXIES="*" # Database Configuration