@@ -1,3 +1,13 @@
|
||||
# SignalR WebSocket upgrade. The /hubs/ block below sets the "Connection" header
|
||||
# to this variable: "upgrade" when the client sends an Upgrade header (WebSocket),
|
||||
# "close" otherwise (long-polling). nginx has no built-in $connection_upgrade, so
|
||||
# it MUST be defined here in the http context or nginx fails config test on start
|
||||
# ([emerg] unknown "connection_upgrade" variable) and keeps the old config.
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
Reference in New Issue
Block a user