improve pg

This commit is contained in:
XenGi 2026-02-03 21:40:17 +01:00
parent 23c472e0fc
commit 82819b9a38
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0
2 changed files with 8 additions and 3 deletions

View file

@ -4,12 +4,17 @@
imports = [
../common.nix
../../services/openssh.nix
../../services/postgres.nix
];
networking = {
hostName = "sql";
firewall = {
# TODO: add postgres from internal network
enable = true;
extraInputRules = ''
ip saddr 195.160.173.0/24 ip daddr 195.160.173.15 tcp dport 5432 accept
ip6 saddr 2001:678:760:cccb::/64 ip6 daddr 2001:678:760:cccb::15 tcp dport 5432 accept
'';
};
};