Add nginx map directive to prefer X-Forwarded-Proto header from Traefik/Pangolin when present, falling back to $scheme for direct internal HTTP access. Applied to both nginx.conf and proxy-params.conf. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
240 B
Plaintext
7 lines
240 B
Plaintext
proxy_pass http://backend:8000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $forwarded_proto;
|