From cf97d39241eb7f0adf6d876976c4f2c0faaf1c31 Mon Sep 17 00:00:00 2001 From: ruslandoga Date: Mon, 25 Mar 2024 15:58:51 +0800 Subject: [PATCH] allow ws proxying in nginx Relevant: - https://github.com/plausible/analytics/discussions/3826 - https://github.com/plausible/analytics/discussions/3817#discussioncomment-8615006 --- reverse-proxy/nginx/plausible | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reverse-proxy/nginx/plausible b/reverse-proxy/nginx/plausible index b2e8649..4ddfd34 100644 --- a/reverse-proxy/nginx/plausible +++ b/reverse-proxy/nginx/plausible @@ -8,5 +8,8 @@ server { location / { proxy_pass http://127.0.0.1:8000; 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"; } }