Uses variable in proxy_pass for normal proxy hosts

This commit is contained in:
Julian Reinhardt 2021-10-25 14:58:02 +02:00
parent bbde7a108a
commit ca59e585d8

View File

@ -1,8 +1,9 @@
set $upstream $forward_scheme://$server:$port$request_uri;
add_header X-Served-By $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass $forward_scheme://$server:$port;
proxy_pass $upstream;