add X-Forwarded-For to websocket proxies

This commit is contained in:
Charlotte Som 2024-11-27 06:08:11 +00:00
parent 6da80f83c2
commit 2ef4f66d65
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ export const config = ngx("", [
"proxy_set_header Upgrade $http_upgrade",
"proxy_set_header Connection $connection_upgrade",
"proxy_set_header Host $host",
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for",
"proxy_read_timeout 300s",
]),
]),

View file

@ -19,6 +19,7 @@ export const config = ngx("", [
"proxy_set_header Upgrade $http_upgrade",
"proxy_set_header Connection $connection_upgrade",
"proxy_set_header Host $host",
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for",
"proxy_read_timeout 300s",
]),
]),