nixos-config/nixos/machines/robi/vaultwarden.nix

33 lines
685 B
Nix
Raw Normal View History

2022-01-13 13:40:18 +01:00
{ config, pkgs, lib, ... }: {
2022-01-15 09:32:59 +01:00
services.vaultwarden = {
2022-01-13 13:40:18 +01:00
enable = true;
2022-01-15 09:32:59 +01:00
# backupDir =
2022-01-13 13:40:18 +01:00
config = {
domain = "https://bitwarden.ingolf-wagner.de";
signupsAllowed = false;
rocketPort = 8222;
rocketLog = "critical";
};
};
2022-01-29 19:39:57 +01:00
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
}";
};
};
};
};
2022-01-13 13:40:18 +01:00
}