nixfiles/hosts/hetzner-arm/profiles/vaultwarden.nix
2024-12-16 22:24:46 +00:00

22 lines
488 B
Nix

{pkgs, ...}: {
services.vaultwarden = {
enable = true;
backupDir = "/var/backup/vaultwarden";
config = {
DOMAIN = "https://vaultwarden.owo.monster";
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
SIGNUPS_ALLOWED = false;
};
};
services.nginx.virtualHosts."vaultwarden.owo.monster" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8222";
proxyWebsockets = true;
};
};
}