summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bitwarden.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-06-06 21:15:49 +0200
committermakefu <github@syntax-fehler.de>2022-06-06 21:15:49 +0200
commit37006c21985e64e8835084c7a6792ed39c2e6661 (patch)
tree59162310240018e9b9ec274be9aa04998fc32f2d /makefu/2configs/bitwarden.nix
parent67693d4eb4d492811069c32e6ed4e57854163beb (diff)
ma services: ensure state is backed up
Diffstat (limited to 'makefu/2configs/bitwarden.nix')
-rw-r--r--makefu/2configs/bitwarden.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefu/2configs/bitwarden.nix b/makefu/2configs/bitwarden.nix
index 92c1c4e0e..cc742511c 100644
--- a/makefu/2configs/bitwarden.nix
+++ b/makefu/2configs/bitwarden.nix
@@ -23,6 +23,11 @@ in {
{ name = "vaultwarden"; ensurePermissions."DATABASE bitwarden" = "ALL PRIVILEGES"; }
];
};
+ services.postgresqlBackup = {
+ enable = true;
+ databases = [ "bitwarden" "vaultwarden" ];
+ };
+
services.nginx.virtualHosts."bw.euer.krebsco.de" ={
forceSSL = true;