services/vaultwarden: fix /persist issues

keep-around/684f2fa19ebd181a623132012ab269c75c3265ef
stuebinm 2021-09-25 17:56:48 +02:00
parent 48a255860a
commit 684f2fa19e
No known key found for this signature in database
GPG Key ID: 8FBE8AAD32FA12B7
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@
services.vaultwarden = {
enable = true;
config = {
LOG_LEVEL="off";
LOG_LEVEL="error";
SIGNUPS_ALLOWED=false;
SIGNUPS_VERIFY=true;
SIGNUPS_DOMAINS_WHITELIST="hacc.space";
@ -37,6 +37,13 @@
systemd.services.backup-vaultwarden.environment.DATA_FOLDER =
lib.mkForce "/persist/var/lib/vaultwarden/data";
systemd.services.vaultwarden.serviceConfig = {
StateDirectory =
lib.mkForce "vaultwarden";
ReadWritePaths = [ "/persist/var/lib/vaultwarden" ];
};
services.nginx.virtualHosts."pw.hacc.space" = {
locations."/" = {
proxyPass = "http://127.0.0.1:5354";