allow local peer connections to postgresql
This commit is contained in:
parent
67f1bf0216
commit
d71e94b0bc
1 changed files with 3 additions and 2 deletions
|
@ -42,10 +42,11 @@ in
|
||||||
services.postgresql.port = port;
|
services.postgresql.port = port;
|
||||||
services.postgresql.authentication = lib.mkOverride 10 ''
|
services.postgresql.authentication = lib.mkOverride 10 ''
|
||||||
#type database DBuser origin-address auth-method
|
#type database DBuser origin-address auth-method
|
||||||
|
local all all peer
|
||||||
# ipv4
|
# ipv4
|
||||||
host all all 127.0.0.1/32 trust
|
host all all 127.0.0.1/32 trust
|
||||||
# ipv6
|
# ipv6
|
||||||
host all all ::1/128 trust
|
host all all ::1/128 trust
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue