1
0
Fork 0
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:
George Hunt 2021-04-17 00:05:18 +01:00
parent 27417f24bc
commit c4c51106fa
2 changed files with 33 additions and 18 deletions

View file

@ -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
##