Add postgres host
Some checks failed
Run nix flake check / flake-check (push) Failing after 6m3s

This commit is contained in:
2025-01-25 02:28:44 +01:00
parent 0c0e4003f0
commit a9eeb8ada6
8 changed files with 182 additions and 66 deletions

View File

@@ -1,7 +1,7 @@
$ORIGIN home.2rjus.net.
$TTL 1800
@ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. (
2049 ; serial number
2050 ; serial number
3600 ; refresh
900 ; retry
1209600 ; expire
@@ -58,6 +58,7 @@ monitoring01 IN A 10.69.13.13
jelly01 IN A 10.69.13.14
nix-cache01 IN A 10.69.13.15
nix-cache IN CNAME nix-cache01
pgdb1 IN A 10.69.13.16
; http-proxy cnames
nzbget IN CNAME http-proxy

View File

@@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./postgres.nix
];
}

View File

@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
services.postgresql = {
enable = true;
enableJIT = true;
enableTCPIP = true;
authentication = ''
# Allow access to everything from gunter
host all all 10.69.30.105/32 scram-sha-256
'';
};
}