Skip to content

Commit

Permalink
Add websockets config
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lloyd03 committed Sep 5, 2022
1 parent f6e8341 commit dc18d64
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/reverse-proxy.md
Expand Up @@ -29,8 +29,17 @@ server {
ssl_certificate_key <PATH_CERT_KEY>;
ssl_protocols TLSv1.2 TLSv1.3;
map $http_upgrade $connection_upgrade {
default keep-alive;
'websocket' upgrade;
'' close;
}
location / {
proxy_pass http://<IP:PORT>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $server_name;
proxy_redirect http:// https://;
proxy_buffering off;
Expand Down

0 comments on commit dc18d64

Please sign in to comment.