Add headers for Websocket
This commit is contained in:
parent
7526d1c6a1
commit
e827005059
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ server {
|
|||
# is transparent).
|
||||
# Also provide "_hidden" for by, since it's not relevant.
|
||||
proxy_set_header Forwarded "for=$remote_addr;proto=https;host=$host;by=_hidden";
|
||||
proxy_intercept_errors off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue