add some comment

This commit is contained in:
asyncnomi 2025-08-02 03:43:31 +02:00
parent 66c20020fc
commit a8b2476288

View file

@ -30,6 +30,7 @@ in
};
systemd.services.postgresql.environment = lib.mkIf (builtins.elem myName mapping.db.slaves) {
# Currently unused cause pwd is mannually set during basebackup
PGPASSFILE = "${config.age.secrets.repli.path}";
};
services.postgresql = {
@ -73,6 +74,7 @@ in
wal_level = "logical";
wal_receiver_timeout = "60s";
max_wal_senders = 16;
# Should be override by postgreqql.auto.conf generated by pg_basebackup
primary_conninfo = "host=${masterIP} port=5432 user=replication";
hot_standby = "on";
};