proxy_snippet

This commit is contained in:
2021-12-04 10:56:18 +01:00
parent 63f010ad32
commit 811bcea64e
2 changed files with 11 additions and 9 deletions

9
snippets/proxy.conf Normal file
View File

@@ -0,0 +1,9 @@
proxy_set_header Host $host;
proxy_set_header Proxy "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarde-Proto $scheme;
proxy_set_header X_FORWARDED_SSL on;
proxy_set_header HTTP_X_FORWARDED_SSL on;