Merge pull request #113 from plausible/allow-nginx-ws

allow ws proxying in nginx
This commit is contained in:
ruslandoga 2024-04-26 01:53:24 +08:00 committed by GitHub
commit 2703326e60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,5 +8,8 @@ server {
location / { location / {
proxy_pass http://127.0.0.1:8000; proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
} }
} }