summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-04-04 10:23:57 +0200
committermakefu <github@syntax-fehler.de>2021-04-04 10:23:57 +0200
commitf4e1fbff427a81506b33f63b77c909e04ce9750a (patch)
treef8c6cc09661a174811e845892887dbbeee51dc01 /makefu/2configs/deployment
parent93bb408b53f2a6dea4c1bbb1414ddf2573c3a361 (diff)
ma rss.euer: backup database
Diffstat (limited to 'makefu/2configs/deployment')
-rw-r--r--makefu/2configs/deployment/rss.euer.krebsco.de.nix8
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;