postgres settings m3-kratos

This commit is contained in:
m3tam3re 2025-01-16 15:19:29 +01:00
parent 38187bc92c
commit 6606d63a20

View File

@ -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];
}