1 2 3 4 5 6
# used for websockets # set http_connection to either upgrade or close (as normal) map $http_upgrade $connection_upgrade { default upgrade; '' close; }