File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 23
23
types_hash_max_size 2048 ;
24
24
variables_hash_max_size 2048 ;
25
25
large_client_header_buffers 4 16k ;
26
-
26
+
27
27
# server_tokens off;
28
28
29
29
# server_names_hash_bucket_size 64;
@@ -72,6 +72,14 @@ http {
72
72
#passenger_root /usr;
73
73
#passenger_ruby /usr/bin/ruby;
74
74
75
+ ##
76
+ # WebSocket proxying
77
+ ##
78
+ map $http_upgrade $connection_upgrade {
79
+ default upgrade;
80
+ '' close;
81
+ }
82
+
75
83
##
76
84
# Virtual Host Configs
77
85
##
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ proxy_set_header X-Forwarded-Host $host;
23
23
proxy_set_header X-Forwarded-Ssl on;
24
24
proxy_redirect http:// $scheme://;
25
25
proxy_http_version 1.1;
26
- proxy_set_header Connection "";
26
+ proxy_set_header Upgrade $http_upgrade;
27
+ proxy_set_header Connection $connection_upgrade;
27
28
#proxy_cookie_path / "/; HTTPOnly; Secure"; # enable at your own risk, may break certain apps
28
29
proxy_cache_bypass $cookie_session;
29
30
proxy_no_cache $cookie_session;
You can’t perform that action at this time.
0 commit comments