Skip to content

Commit

Permalink
Merge pull request #447 from beaucollins/patch-1
Browse files Browse the repository at this point in the history
Nginx TLS proxy docs: Add websocket support to the nginx proxy config
  • Loading branch information
michaelquigley authored Nov 6, 2023
2 parents 795b953 + 1fdcac1 commit 930f965
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/guides/self-hosting/nginx_tls_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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";
}

}
```
Expand Down

1 comment on commit 930f965

@vercel
Copy link

@vercel vercel bot commented on 930f965 Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zrok – ./

zrok-openziti.vercel.app
zrok.vercel.app
zrok-git-main-openziti.vercel.app

Please sign in to comment.