diff --git a/hosts/m3-kratos/services/postgres.nix b/hosts/m3-kratos/services/postgres.nix index 6c4ad63..e845533 100644 --- a/hosts/m3-kratos/services/postgres.nix +++ b/hosts/m3-kratos/services/postgres.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { services.postgresql = { enable = true; + enableTCPIP = true; package = pkgs.postgresql_17; extraPlugins = with pkgs.postgresql17Packages; [ pgvector @@ -11,7 +12,7 @@ host all all ::1/128 trust host all all 10.88.0.0/16 trust - host all all 19.89.0.0/16 trust + host all all 10.89.0.0/16 trust ''; initialScript = pkgs.writeText "initialScript.sql" '' CREATE USER n8n WITH PASSWORD 'n8n'; @@ -19,4 +20,5 @@ GRANT ALL PRIVILEGES ON DATABASE n8n TO n8n; ''; }; + networking.firewall.allowedTCPPorts = [5432]; }