From 4f48146e9aba23b2029e3f358987f0177a6fba3a Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 22 Dec 2025 10:13:37 +0900 Subject: [PATCH] bicep/postgres: allow connections from ildkule --- hosts/bicep/services/postgres.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/bicep/services/postgres.nix b/hosts/bicep/services/postgres.nix index 516af7d..9b31c4f 100644 --- a/hosts/bicep/services/postgres.nix +++ b/hosts/bicep/services/postgres.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, values, ... }: { services.postgresql = { enable = true; @@ -8,8 +8,10 @@ dataDir = "/data/postgresql"; authentication = '' - host all all 129.241.210.128/25 md5 - host all all 2001:700:300:1900::/64 md5 + host all all ${values.ipv4-space} md5 + host all all ${values.ipv6-space} md5 + host all all ${values.hosts.ildkule.ipv4} md5 + host all all ${values.hosts.ildkule.ipv6} md5 ''; # Hilsen https://pgconfigurator.cybertec-postgresql.com/