1
0
angie-krdsh/snip.d/proxy-common-headers
2024-03-22 10:24:54 +03:00

10 lines
422 B
Plaintext

## always sourced by conf.d/http-proxy.conf
## $proxy_add_forwarded is defined in conf.d/http-proxy.conf
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Forwarded $proxy_add_forwarded;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;