blob: 0a6a8d73774f6271683ac6a5ac0f7d7b093d614c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ pkgs, ... }:
{
services.postgresql = {
enable = true;
package = pkgs.postgresql_17_jit;
enableTCPIP = true;
authentication = pkgs.lib.mkOverride 10 ''
# TYPE, DATABASE, USER, ADDRESS, METHOD
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host discordbots discordbots 192.168.1.2/32 trust
host matrix-synapse-rory-gay matrix-synapse-rory-gay 192.168.1.5/32 trust
host all all 0.0.0.0/0 md5
'';
settings = {
max_connections = 2500;
superuser_reserved_connections = 3;
};
};
}
|