diff options
author | makefu <github@syntax-fehler.de> | 2021-04-04 10:23:57 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-04-04 10:23:57 +0200 |
commit | f4e1fbff427a81506b33f63b77c909e04ce9750a (patch) | |
tree | f8c6cc09661a174811e845892887dbbeee51dc01 /makefu/2configs | |
parent | 93bb408b53f2a6dea4c1bbb1414ddf2573c3a361 (diff) |
ma rss.euer: backup database
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/deployment/rss.euer.krebsco.de.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/makefu/2configs/deployment/rss.euer.krebsco.de.nix b/makefu/2configs/deployment/rss.euer.krebsco.de.nix index 4be56f323..a7ada9395 100644 --- a/makefu/2configs/deployment/rss.euer.krebsco.de.nix +++ b/makefu/2configs/deployment/rss.euer.krebsco.de.nix @@ -9,7 +9,13 @@ in { }; systemd.services.tt-rss.serviceConfig.ExecStart = lib.mkForce "${pkgs.php}/bin/php /var/lib/tt-rss/update_daemon2.php"; services.postgresql.package = pkgs.postgresql_9_6; - state = [ config.services.postgresql.dataDir ]; + state = [ config.services.postgresqlBackup.location ]; + + services.postgresqlBackup = { + enable = true; + databases = [ config.services.tt-rss.database.name ]; + }; + services.nginx.virtualHosts."${fqdn}" = { enableACME = true; forceSSL = true; |