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

@ -0,0 +1,7 @@
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header Host $host;