diff --git a/nixos/configs/robi/vaultwarden.nix b/nixos/configs/robi/vaultwarden.nix index a32ffa8..076242c 100644 --- a/nixos/configs/robi/vaultwarden.nix +++ b/nixos/configs/robi/vaultwarden.nix @@ -9,5 +9,24 @@ rocketLog = "critical"; }; }; - #backup.dirs = [ "/var/lib/bitwarden_rs" ]; + + backup.dirs = [ "/var/lib/bitwarden_rs" ]; + + services.nginx = { + enable = true; + recommendedProxySettings = true; + virtualHosts = { + + "bitwarden.ingolf-wagner.de" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:${ + toString config.services.vaultwarden.config.rocketPort + }"; + }; + }; + }; + }; + }