add postgres for fun data
This commit is contained in:
parent
c22f742013
commit
9e58c21946
3 changed files with 27 additions and 2 deletions
|
|
@ -11,5 +11,6 @@
|
|||
./trilium.nix
|
||||
./oauth2-proxy.nix
|
||||
./n8n.nix
|
||||
./postgresql.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@
|
|||
N8N_HOST = "n8n.joshuabell.xyz";
|
||||
VUE_APP_URL_BASE_API = "https://n8n.joshuabell.xyz/";
|
||||
N8N_HIRING_BANNER_ENABLED = "false";
|
||||
N8N_PUBLIC_API_DISABLED = "true";
|
||||
N8N_PUBLIC_API_SWAGGERUI_DISABLED = "true";
|
||||
# N8N_PUBLIC_API_DISABLED = "true";
|
||||
# N8N_PUBLIC_API_SWAGGERUI_DISABLED = "true";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
24
hosts/h001/mods/postgresql.nix
Normal file
24
hosts/h001/mods/postgresql.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_17.withJIT;
|
||||
enableJIT = true;
|
||||
authentication = ''
|
||||
local all all trust
|
||||
host all all 127.0.0.1/8 trust
|
||||
host all all ::1/128 trust
|
||||
host all all fc00::1/128 trust
|
||||
'';
|
||||
};
|
||||
|
||||
# Backup database
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue