Skip to content

Commit

Permalink
Fix deployment note about nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanppl committed Dec 15, 2024
1 parent 41e68a3 commit 6d630da
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ Notes for deploying this in a self-hosted environment.
location / {
proxy_pass http://localhost:4000;
proxy_ssl_server_name on;
# For web socket connections
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
```
Expand Down Expand Up @@ -278,6 +284,12 @@ Notes for deploying this in a self-hosted environment.
location / {
proxy_pass http://localhost:4000;
proxy_ssl_server_name on;
# For web socket connections
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
add_header Alt-Svc 'h3=":443"; ma=86400';
}
Expand Down

0 comments on commit 6d630da

Please sign in to comment.