nginx: Add support for proxied websockets
This commit is contained in:
parent
95b131bd8f
commit
bfbb54b02c
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,14 @@ http {
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_ssl_verify on;
|
proxy_ssl_verify on;
|
||||||
|
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
default upgrade;
|
||||||
|
'' close;
|
||||||
|
}
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
{% if plaintext is defined %}
|
{% if plaintext is defined %}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue