mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
n8n enable
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
./transmission.nix
|
./transmission.nix
|
||||||
./uptime-kuma.nix
|
./uptime-kuma.nix
|
||||||
./netdata.nix
|
./netdata.nix
|
||||||
|
./n8n.nix
|
||||||
# ./mealie.nix
|
# ./mealie.nix
|
||||||
# ./memos.nix
|
# ./memos.nix
|
||||||
# ./nfs.nix
|
# ./nfs.nix
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
xlib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.n8n = {
|
||||||
|
enable = true;
|
||||||
|
environment = {
|
||||||
|
# N8N_USER_FOLDER = lib.mkForce "${xlib.dirs.services-mnt-folder}/n8n";
|
||||||
|
N8N_SECURE_COOKIE = "false";
|
||||||
|
N8N_PORT = 5678;
|
||||||
|
};
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
||||||
|
"z ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/var/lib/n8n" = {
|
||||||
|
device = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||||
|
options = [
|
||||||
|
"bind"
|
||||||
|
"nofail"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -48,6 +48,14 @@ in
|
|||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
"n8n.local" = {
|
||||||
|
forceSSL = false;
|
||||||
|
enableACME = false;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${server}:5678";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
"kuma.local" = {
|
"kuma.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|||||||
@@ -119,6 +119,14 @@ in
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"n8n.zeroq.ru" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${server}:5678";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
"office.zeroq.ru" = {
|
"office.zeroq.ru" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user