+postgres n8n@1.66.0
This commit is contained in:
22
hosts/m3-kratos/services/postgres.nix
Normal file
22
hosts/m3-kratos/services/postgres.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{pkgs, ...}: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_17;
|
||||
extraPlugins = with pkgs.postgresql17Packages; [
|
||||
pgvector
|
||||
];
|
||||
authentication = ''
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 trust
|
||||
host all all ::1/128 trust
|
||||
|
||||
host all all 10.88.0.0/16 trust
|
||||
host all all 19.89.0.0/16 trust
|
||||
'';
|
||||
initialScript = pkgs.writeText "initialScript.sql" ''
|
||||
CREATE USER n8n WITH PASSWORD 'n8n';
|
||||
CREATE DATABASE n8n;
|
||||
GRANT ALL PRIVILEGES ON DATABASE n8n TO n8n;
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user