fix vaultwarden backups
This commit is contained in:
parent
fcba9260bc
commit
5c7c56e598
|
@ -12,6 +12,7 @@
|
|||
./services/gitea.nix
|
||||
./services/restic.nix
|
||||
./services/sshguard.nix
|
||||
./services/vaultwarden.nix
|
||||
./data/secrets/secrets.nix
|
||||
];
|
||||
|
||||
|
@ -44,6 +45,7 @@
|
|||
vim
|
||||
htop
|
||||
iotop
|
||||
dig
|
||||
];
|
||||
|
||||
nix = {
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
repository = "sftp:restic@despondos.nao.sh:/etheria/backup/wind/vaultwarden";
|
||||
initialize = true;
|
||||
pruneOpts = [ "--keep-daily 7" "--keep-weekly 5" "--keep-monthly 12" "--keep-yearly 75" ];
|
||||
timerConfig = { "OnCalendar" = "03:30"; };
|
||||
timerConfig = { "OnCalendar" = "23:45"; };
|
||||
extraOptions = [ "sftp.command='ssh restic@despondos.nao.sh -i ${config.secrets.files.ssh_private_key.file} -s sftp'" ];
|
||||
passwordFile = builtins.toString config.secrets.files.restic_pass.file;
|
||||
};
|
||||
|
|
|
@ -3,17 +3,16 @@
|
|||
services.vaultwarden = {
|
||||
enable = true;
|
||||
environmentFile = config.secrets.files.vaultwarden_env.file;
|
||||
backupDir = "/var/lib/vaultwarden/backup";
|
||||
backupDir = "/var/lib/bitwarden_rs/backup";
|
||||
config = {
|
||||
domain = "https://vault.graven.dev";
|
||||
signupsAllowed = true;
|
||||
rocketPort = 8812;
|
||||
rocketLog = warn;
|
||||
ipHeader = "X-Real-IP";
|
||||
websocketEnabled = true;
|
||||
websocketAddress = "127.0.0.1";
|
||||
websocketPort = "3012";
|
||||
dataDir = "/var/lib/vaultwarden";
|
||||
#dataDir = "/var/lib/vaultwarden";
|
||||
smtpHost = "smtp.soverin.net";
|
||||
smtpFrom = "vaultwarden@graven.dev";
|
||||
smtpFromName = "Vaultwarden";
|
||||
|
|
Loading…
Reference in a new issue