ma rss.euer: backup database

This commit is contained in:
makefu 2021-04-04 10:23:57 +02:00
parent b83c61d70e
commit e6f81a2a18

View file

@ -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;