fix: inconsistent hostnames

fixes #2
This commit is contained in:
Finn Linck Ryan 2026-01-11 17:24:24 +00:00
parent f037d1dd80
commit 2637817c9c
20 changed files with 8 additions and 12 deletions

View file

@ -1,31 +0,0 @@
{ pkgs
, ...
}:
{
services.postgresql = {
enable = true;
package = pkgs.postgresql_18;
ensureDatabases = [
"forgejo"
];
ensureUsers = [
{ name = "forgejo"; ensureDBOwnership = true; }
];
authentication = ''
# Socket connections
local forgejo forgejo peer
# Localhost connections
host forgejo forgejo 127.0.0.1/32 trust
host forgejo forgejo ::1/128 trust
# Deny everything else
host all all 0.0.0.0/0 reject
host all all ::0/0 reject
'';
};
}