introduce proxy_options snippet

This commit is contained in:
2021-01-23 00:31:55 +01:00
parent 476cc11b68
commit 98576f69e1
3 changed files with 9 additions and 20 deletions

View File

@ -21,12 +21,6 @@ server {
location / {
proxy_pass http://192.168.2.2/;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
include /etc/nginx/snippets/proxy_options.conf;
}
}