docs: help with $connection_upgrade

Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/260.
This commit is contained in:
decentral1se 2022-04-06 02:12:33 +02:00 committed by André Staltz
parent f09ca6aff3
commit 114f1682a3
2 changed files with 13 additions and 0 deletions

View File

@ -111,6 +111,17 @@ is often added automatically by your provider.
When the process is complete with `certbot`, restart your server, e.g. `systemctl restart nginx`.
If you see such errors as the following when setting up your deployment:
```
nginx: [emerg] unknown "connection_upgrade" variable
```
You may need to configure `$connection_upgrade` in your
`/etc/nginx/nginx.conf`. See [this
article](https://futurestud.io/tutorials/nginx-how-to-fix-unknown-connection_upgrade-variable)
for more.
## Enable TCP ports
For your room to fully work the following **TCP** ports need to be allowed:

View File

@ -21,6 +21,8 @@ server {
# for websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
# requires a $connection_upgrade definition in /etc/nginx/nginx.conf
# see https://futurestud.io/tutorials/nginx-how-to-fix-unknown-connection_upgrade-variable
proxy_set_header Connection $connection_upgrade;
}