add X-Forwarded-For to websocket proxies
This commit is contained in:
parent
6da80f83c2
commit
2ef4f66d65
2 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
]),
|
||||
]),
|
||||
|
|
|
@ -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",
|
||||
]),
|
||||
]),
|
||||
|
|
Loading…
Reference in a new issue