From e40b981476cc6b64205ca28d7b8307f405a938c6 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 18 Jul 2024 19:44:11 +0200 Subject: [PATCH] vaultwarden: fix websocket pass through --- roles/vaultwarden/templates/vhost.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/vaultwarden/templates/vhost.j2 b/roles/vaultwarden/templates/vhost.j2 index 657656d..8b2ed28 100644 --- a/roles/vaultwarden/templates/vhost.j2 +++ b/roles/vaultwarden/templates/vhost.j2 @@ -33,6 +33,9 @@ server { location / { proxy_pass http://localhost:4000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;