From a5ee12226c81906c28a1faac9e34188c4b1d43c7 Mon Sep 17 00:00:00 2001 From: RatCornu Date: Mon, 26 May 2025 22:46:37 +0200 Subject: [PATCH] vaultwarden: ajout nginx --- modules/services/vaultwarden.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/services/vaultwarden.nix b/modules/services/vaultwarden.nix index 121822a..718beda 100644 --- a/modules/services/vaultwarden.nix +++ b/modules/services/vaultwarden.nix @@ -1,6 +1,10 @@ { config, pkgs, ... }: { + imports = [ + ./nginx.nix + ]; + age.secrets = { env = { file = ../../secrets/vaultwarden/env.age; @@ -13,6 +17,13 @@ environmentFile = config.age.secrets.env.path; }; + services.nginx.virtualHosts."vaultwarden.crans.org" = { + locations."/" = { + proxyPass = "http://localhost:8222"; + proxyWebsockets = true; + }; + }; + systemd.services.vaultwarden = { path = with pkgs; [ postfix ]; };