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 ]; };