From 76ec1d9c51d7cb017d217826d78ab570860f037b Mon Sep 17 00:00:00 2001 From: oddlama Date: Thu, 14 Mar 2024 01:05:08 +0100 Subject: [PATCH] fix: allow webauthn iframe on vaultwarden --- hosts/ward/guests/vaultwarden.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/ward/guests/vaultwarden.nix b/hosts/ward/guests/vaultwarden.nix index 5dde224..cd11af1 100644 --- a/hosts/ward/guests/vaultwarden.nix +++ b/hosts/ward/guests/vaultwarden.nix @@ -41,7 +41,11 @@ in { extraConfig = '' client_max_body_size 256M; ''; - locations."/".proxyPass = "http://vaultwarden"; + locations."/" = { + proxyPass = "http://vaultwarden"; + proxyWebsockets = true; + X-Frame-Options = "SAMEORIGIN"; + }; }; }; };