mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 14:50:55 +01:00
Update nginx_tls_guide.md with websocket support
Adds websocket support to the nginx proxy config. Signed-off-by: Beau Collins <beau@collins.pub>
This commit is contained in:
parent
795b953845
commit
1fdcac13ea
@ -49,6 +49,12 @@ server {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
default keep-alive;
|
||||||
|
'websocket' upgrade;
|
||||||
|
'' close;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name *.zrok.quigley.com;
|
server_name *.zrok.quigley.com;
|
||||||
@ -65,8 +71,10 @@ server {
|
|||||||
proxy_buffers 4 512k;
|
proxy_buffers 4 512k;
|
||||||
proxy_buffer_size 256k;
|
proxy_buffer_size 256k;
|
||||||
|
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user