websocket support in NGINX , see: #45
This commit is contained in:
@@ -9,7 +9,12 @@ upstream $APP { server 127.0.0.1:$PORT; }
|
||||
server {
|
||||
listen 80;
|
||||
server_name $hostname;
|
||||
location / { proxy_pass http://$APP; }
|
||||
location / {
|
||||
proxy_pass http://$APP;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
EOF
|
||||
nc -U $HOME/reload-nginx
|
||||
|
||||
Reference in New Issue
Block a user