diff --git a/templates/rallly/docker-compose.yml b/templates/rallly/docker-compose.yml index 9ff77b7..c377b1b 100644 --- a/templates/rallly/docker-compose.yml +++ b/templates/rallly/docker-compose.yml @@ -54,6 +54,10 @@ services: labels: - "traefik.enable=true" - "traefik.http.routers.rallly.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" + # R-753: this app reads the LEFTMOST X-Forwarded-For entry, which a stranger writes once traefik keeps the + # tunnel's chain — so its chain is removed here (it then reads traefik's X-Real-Ip or peer; never forgeable). + - "traefik.http.middlewares.rallly-xff.headers.customrequestheaders.X-Forwarded-For=" + - "traefik.http.routers.rallly.middlewares=rallly-xff" - "traefik.http.routers.rallly.entrypoints=websecure" - "traefik.http.routers.rallly.tls=true" - "traefik.http.routers.rallly.tls.certresolver=letsencrypt"