9 lines
421 B
Plaintext
9 lines
421 B
Plaintext
# Maps the Connection header for WebSocket proxying. Goes in /etc/nginx/conf.d/ so it
|
|
# lives in the http{} context (a `map` can't go inside a server/location block).
|
|
# When a request carries `Upgrade: websocket`, send `Connection: upgrade`; otherwise
|
|
# `Connection: close`. Used by the voip.activeblue.net vhost for the /ws media stream.
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|