2023-06-21 12:21:40 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.postgresql_15;
|
|
|
|
|
|
|
|
enableTCPIP = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
full_page_writes = "off";
|
|
|
|
wal_init_zero = "off";
|
|
|
|
wal_recycle = "off";
|
|
|
|
};
|
|
|
|
|
|
|
|
authentication = ''
|
2023-09-28 20:46:48 +00:00
|
|
|
host all all 100.64.10.3/32 md5
|
2023-06-21 12:21:40 +00:00
|
|
|
host all all 10.88.0.0/16 md5
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ 5432 ];
|
|
|
|
}
|