nginx headers

This commit is contained in:
Sergey Linnik
2024-02-15 11:18:42 +03:00
parent 92e7294f81
commit 98d48f373a
2 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,14 @@ http {
location / {
proxy_http_version 1.1;
proxy_pass http://example;
proxy_redirect off;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_x_forwarded_host;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Real-IP $remote_addr;
}
}