2023-11-09 15:29:42 +01:00
|
|
|
{ pkgs, ... }:
|
2023-08-21 11:40:56 +02:00
|
|
|
{
|
|
|
|
# automatically back up all databases
|
|
|
|
services.postgresqlBackup = {
|
|
|
|
enable = true;
|
|
|
|
location = "/var/lib/backup/postgresql";
|
2023-08-21 11:48:03 +02:00
|
|
|
databases = [
|
|
|
|
"course-management"
|
|
|
|
"gitea"
|
|
|
|
"hedgedoc"
|
|
|
|
"matrix-synapse"
|
|
|
|
"mautrix-telegram"
|
|
|
|
"mediawiki"
|
|
|
|
"nextcloud"
|
|
|
|
"postgres"
|
|
|
|
"sogo"
|
|
|
|
"vaultwarden"
|
2023-09-14 16:03:29 +02:00
|
|
|
"mailman"
|
|
|
|
"mailmanweb"
|
2023-11-29 23:29:59 +01:00
|
|
|
"zammad"
|
2023-08-21 11:48:03 +02:00
|
|
|
];
|
2023-08-21 11:40:56 +02:00
|
|
|
};
|
2023-11-09 15:29:42 +01:00
|
|
|
|
|
|
|
services.postgresql.settings.max_connections = 1000;
|
2023-08-21 11:40:56 +02:00
|
|
|
}
|