Defined snippet for general headers when proxy_pass'ing

This commit is contained in:
2023-11-08 23:39:39 +01:00
parent 677fcf95f5
commit b19da521bf
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +0,0 @@
proxy_set_header Host $http_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 $scheme;

View File

@@ -0,0 +1,6 @@
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
add_header X-Proxy-Params Applied always;