diff --git a/flake.nix b/flake.nix index 217f656..aa86fed 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,7 @@ ./tail.nix ./matrix.nix ./coturn.nix + ./vaultwarden.nix (import ./mail.nix {inherit mailserver;}) (import ./homepage.nix {inherit homepage;}) ]; diff --git a/vaultwarden.nix b/vaultwarden.nix new file mode 100644 index 0000000..104f1f7 --- /dev/null +++ b/vaultwarden.nix @@ -0,0 +1,22 @@ +{ ... }: + +let + domain = "pw.sondell.org"; + port = "8222"; +in +{ + # + services.vaultwarden = { + enable = true; + }; + + + services.nginx.virtualHosts.${domain} = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:${port}/"; + }; + }; +} +