postgres settings m3-kratos
This commit is contained in:
parent
38187bc92c
commit
6606d63a20
@ -1,6 +1,7 @@
|
||||
{pkgs, ...}: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
package = pkgs.postgresql_17;
|
||||
extraPlugins = with pkgs.postgresql17Packages; [
|
||||
pgvector
|
||||
@ -11,7 +12,7 @@
|
||||
host all all ::1/128 trust
|
||||
|
||||
host all all 10.88.0.0/16 trust
|
||||
host all all 19.89.0.0/16 trust
|
||||
host all all 10.89.0.0/16 trust
|
||||
'';
|
||||
initialScript = pkgs.writeText "initialScript.sql" ''
|
||||
CREATE USER n8n WITH PASSWORD 'n8n';
|
||||
@ -19,4 +20,5 @@
|
||||
GRANT ALL PRIVILEGES ON DATABASE n8n TO n8n;
|
||||
'';
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [5432];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user