lemmy: enable proxyWebsockets instead of manually specifying upgrade logic

This commit is contained in:
Colin 2023-05-12 04:46:38 +00:00
parent 6ff2c8acae
commit e34c9cc190

View File

@ -96,12 +96,8 @@ in {
"~ ^/(api|pictrs|feeds|nodeinfo|.well-known)" = {
# "backend"
proxyPass = backend;
# <lemmy-docs:src/en/administration/troubleshooting.md> calls out these lines for the websocket
proxyWebsockets = true;
extraConfig = ''
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;