@cryptotaxi247 / infra / commits / 718f54dd

titan: enable postgresql

Martin Weinelt committed Dec 14, 2025 at 01:49 UTC 718f54dd566cf23b3741a231e8141e79b293cbfe
1 file changed +3 -3
build/titan/postgresql.nix
+3 -3
@@ -19,12 +19,12 @@
19 networking.firewall.interfaces."vlan4000".allowedTCPPorts = [ 5432 ];
20
21 services.postgresql = {
22 - enable = false; # TODO: enable after data migration
22 + enable = true;
23 enableJIT = true;
24 package = pkgs.postgresql_16;
25 # https://pgtune.leopard.in.ua/#/
26 settings = {
27 - listen_addresses = lib.mkForce "10.254.1.9";
27 + listen_addresses = lib.mkForce "10.0.40.3";
28
29 # https://vadosware.io/post/everything-ive-seen-on-optimizing-postgres-on-zfs-on-linux/#zfs-related-tunables-on-the-postgres-side
30 full_page_writes = "off";
@@ -97,7 +97,7 @@
97
98 # FIXME: don't use 'trust'.
99 authentication = ''
100 - host hydra all 10.254.1.1/32 trust
100 + host hydra all 10.0.40.2/32 trust
101 local all root peer map=prometheus
102 '';
103