commit d72c0476e84608b90222fb8b08b6bb162d3dd756
parent 7404c927e5fcb8fb049764129ae1743c65c782ed
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 27 Jan 2024 16:29:34 +0100
mow
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/nixos/common/lib/patroni.nix b/nixos/common/lib/patroni.nix
@@ -20,7 +20,9 @@
};
authentication = ''
host all all 10.100.12.1/32 md5
+ host all all 10.0.0.0/16 md5
host replication all 10.100.12.1/32 md5
+ host replication all 10.0.0.0/16 md5
host all all 10.100.0.0/10 md5
host replication all 10.100.0.0/10 md5
host all all 10.244.0.0/10 md5
@@ -51,7 +53,7 @@
settings = {
postgresql = {
- listen = lib.mkForce "127.0.0.1,10.100.0.1:5432,10.0.2.1:5432";
+ listen = lib.mkForce "127.0.0.1,10.0.2.1:5432";
parameters = {
max_connections = "300";
superuser_reserved_connections = "3";
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix
@@ -627,8 +627,8 @@ in {
extraConfig = ''
advert_int 1
'';
- unicastSrcIp = "10.100.0.1";
- unicastPeers = ["10.0.2.1"];
+ unicastSrcIp = "10.0.2.1";
+ unicastPeers = ["10.0.1.2"];
virtualIps = [
{
addr = "10.100.12.1/24";