From 642d297710e9c6d031572c25901f13b584890306 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 3 May 2024 07:39:16 +0200 Subject: [PATCH] fix pw --- flake.nix | 1 + vaultwarden.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 vaultwarden.nix 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}/"; + }; + }; +} +