Add helper map for better websocket support

This commit is contained in:
Jake Howard 2023-12-21 16:13:57 +00:00
parent a3baf8be1e
commit 8e1a203df2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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;
}