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:
Beau Collins 2023-11-04 17:53:41 -07:00 committed by GitHub
parent 795b953845
commit 1fdcac13ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,12 @@ server {
}
map $http_upgrade $connection_upgrade {
default keep-alive;
'websocket' upgrade;
'' close;
}
server {
listen 443 ssl;
server_name *.zrok.quigley.com;
@ -65,8 +71,10 @@ server {
proxy_buffers 4 512k;
proxy_buffer_size 256k;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
```