Merge pull request #447 from beaucollins/patch-1

Nginx TLS proxy docs: Add websocket support to the nginx proxy config
This commit is contained in:
Michael Quigley 2023-11-06 08:26:36 -05:00 committed by GitHub
commit 930f965c57
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";
}
}
```