adding n8n

This commit is contained in:
2025-10-17 12:35:19 -04:00
parent 1e85635e89
commit d35ba60c69
3 changed files with 45 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ frontend ContentSwitching
acl host_jellyfin hdr(host) -i jellyfin.tmmworkshop.com acl host_jellyfin hdr(host) -i jellyfin.tmmworkshop.com
acl host_share hdr(host) -i share.tmmworkshop.com acl host_share hdr(host) -i share.tmmworkshop.com
acl host_gcw hdr(host) -i gcw.tmmworkshop.com acl host_gcw hdr(host) -i gcw.tmmworkshop.com
acl host_n8n hdr(host) -i n8n.tmmworkshop.com
use_backend audiobookshelf_nodes if host_audiobookshelf use_backend audiobookshelf_nodes if host_audiobookshelf
use_backend cache_nodes if host_cache use_backend cache_nodes if host_cache
@@ -40,6 +41,7 @@ frontend ContentSwitching
use_backend jellyfin if host_jellyfin use_backend jellyfin if host_jellyfin
use_backend share_nodes if host_share use_backend share_nodes if host_share
use_backend gcw_nodes if host_gcw use_backend gcw_nodes if host_gcw
use_backend n8n if host_n8n
backend audiobookshelf_nodes backend audiobookshelf_nodes
mode http mode http
@@ -71,3 +73,7 @@ backend share_nodes
backend gcw_nodes backend gcw_nodes
mode http mode http
server server 127.0.0.1:8092 server server 127.0.0.1:8092
backend n8n
mode http
server server 127.0.0.1:5678

View File

@@ -0,0 +1,37 @@
{
services.n8n = {
enable = true;
settings = {
N8N_HOST = "127.0.0.1";
N8N_PORT = "5678";
N8N_PROTOCOL = "https";
WEBHOOK_URL = "https://n8n.tmmworkshop.com/";
N8N_EDITOR_BASE_URL = "https://n8n.tmmworkshop.com/";
DB_TYPE = "postgresdb";
DB_POSTGRESDB_HOST = "/run/postgresql";
DB_POSTGRESDB_DATABASE = "n8n";
DB_POSTGRESDB_USER = "richie";
N8N_ENCRYPTION_KEY = "generate-a-long-random-key";
N8N_SECURE_COOKIE = "true";
N8N_USER_MANAGEMENT_DISABLED = "false";
N8N_DEFAULT_LOCALE = "en";
GENERIC_TIMEZONE = "America/New_York";
N8N_DIAGNOSTICS_ENABLED = "false";
N8N_VERSION_NOTIFICATIONS_ENABLED = "false";
};
# Optional: hardening toggles you might like
# serviceConfig = {
# ProtectHome = "read-only";
# ProtectKernelTunables = true;
# ProtectKernelModules = true;
# PrivateTmp = true;
# NoNewPrivileges = true;
# };
};
}

View File

@@ -128,12 +128,13 @@ in
} }
]; ];
ensureDatabases = [ ensureDatabases = [
"math"
"gcw" "gcw"
"hass" "hass"
"math"
"megan" "megan"
"mxr_dev" "mxr_dev"
"mxr_prod" "mxr_prod"
"n8n"
"richie" "richie"
]; ];
# Thank you NotAShelf # Thank you NotAShelf