# we're in the http context here map $http_upgrade $connection_upgrade { default upgrade; '' close; }