mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
get nginx to proxy websockets correctly
This commit is contained in:
parent
27417f24bc
commit
c4c51106fa
2 changed files with 33 additions and 18 deletions
|
@ -67,6 +67,15 @@ http {
|
|||
# gzip_buffers 16 8k;
|
||||
# gzip_http_version 1.1;
|
||||
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
# top-level http config for websocket headers
|
||||
# If Upgrade is defined, Connection = upgrade
|
||||
# If Upgrade is empty, Connection = close
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
##
|
||||
# Virtual Host Configs
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue