nixfiles/hosts/hetzner-arm/profiles/vaultwarden.nix

21 lines
474 B
Nix
Raw Normal View History

2024-12-14 12:16:38 +00:00
{pkgs, ...}: {
services.vaultwarden = {
enable = true;
backupDir = "/var/backup/vaultwarden";
environmentFile = "/var/lib/vaultwarden.env";
config = {
DOMAIN = "https://vaultwarden.owo.monster";
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
};
};
services.nginx.virtualHosts."vaultwarden.owo.monster" = {
forceSSL = true;
enableACME = true;
locations = {
"/".proxyPass = "http://127.0.0.1:8222";
};
};
}