services/postgres: enable tcp/ip
This commit is contained in:
parent
4a8d7a343d
commit
1747b9c918
1 changed files with 4 additions and 2 deletions
|
|
@ -9,8 +9,10 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = dir;
|
dataDir = dir;
|
||||||
authentication = lib.mkOverride 10 ''
|
authentication = lib.mkOverride 10 ''
|
||||||
#type database DBuser auth-method
|
#type database DBuser origin-address auth-method
|
||||||
local all all trust
|
local all all trust
|
||||||
|
host all all 127.0.0.1/32 trust
|
||||||
|
host all all ::1/128 trust
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue