WebSocket proxying

http://nginx.org/en/docs/http/websocket.html
This commit is contained in:
Eric Nemchik 2020-09-01 09:02:42 -05:00
parent 055801b05b
commit 9f1cc323b1
2 changed files with 11 additions and 2 deletions

View file

@ -23,7 +23,7 @@ http {
types_hash_max_size 2048;
variables_hash_max_size 2048;
large_client_header_buffers 4 16k;
# server_tokens off;
# server_names_hash_bucket_size 64;
@ -72,6 +72,14 @@ http {
#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;
##
# WebSocket proxying
##
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
##
# Virtual Host Configs
##