Add tmpfile for vaultwarden
This commit is contained in:
parent
c51668691a
commit
17bc9c8886
|
@ -2,9 +2,13 @@
|
||||||
let
|
let
|
||||||
port = 8404;
|
port = 8404;
|
||||||
host = "warden.moonythm.dev";
|
host = "warden.moonythm.dev";
|
||||||
|
dataDir = "/persist/state/var/lib/vaultwarden";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
systemd.tmpfiles.rules = [ "d ${dataDir} 0700 vaultwarden vaultwarden -" ];
|
||||||
sops.secrets.vaultwarden_env.sopsFile = ../secrets.yaml;
|
sops.secrets.vaultwarden_env.sopsFile = ../secrets.yaml;
|
||||||
|
services.nginx.virtualHosts.${host} =
|
||||||
|
config.satellite.proxy port { proxyWebsockets = true; };
|
||||||
|
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -13,7 +17,7 @@ in
|
||||||
DOMAIN = "https://${host}";
|
DOMAIN = "https://${host}";
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
ROCKET_ADDRESS = "127.0.0.1";
|
||||||
ROCKET_PORT = port;
|
ROCKET_PORT = port;
|
||||||
DATA_FOLDER = "/persist/state/var/lib/vaultwarden";
|
DATA_FOLDER = dataDir;
|
||||||
|
|
||||||
SIGNUPS_ALLOWED = true;
|
SIGNUPS_ALLOWED = true;
|
||||||
SHOW_PASSWORD_HINT = false;
|
SHOW_PASSWORD_HINT = false;
|
||||||
|
@ -25,7 +29,4 @@ in
|
||||||
SMTP_USERNAME = "vaultwarden";
|
SMTP_USERNAME = "vaultwarden";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${host} =
|
|
||||||
config.satellite.proxy port { proxyWebsockets = true; };
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue