Add helper map for better websocket support
This commit is contained in:
parent
a3baf8be1e
commit
8e1a203df2
1 changed files with 6 additions and 0 deletions
|
@ -32,3 +32,9 @@ proxy_set_header X-Forwarded-Uri $request_uri;
|
|||
proxy_set_header X-Original-Method $request_method;
|
||||
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
# Helper variable for proxying websockets.
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue