mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-16 06:51:50 +03:00
n8n added
This commit is contained in:
+10
-6
@@ -6,11 +6,15 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
configDir = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||||
|
varDir = "/var/lib/n8n";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.n8n = {
|
services.n8n = {
|
||||||
enable = false;
|
enable = true;
|
||||||
environment = {
|
environment = {
|
||||||
# N8N_USER_FOLDER = lib.mkForce "${xlib.dirs.services-mnt-folder}/n8n";
|
# N8N_USER_FOLDER = lib.mkForce "${configDir}";
|
||||||
N8N_SECURE_COOKIE = "false";
|
N8N_SECURE_COOKIE = "false";
|
||||||
N8N_PORT = 5678;
|
N8N_PORT = 5678;
|
||||||
};
|
};
|
||||||
@@ -18,12 +22,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
"d ${configDir} 0755 nobody nogroup -"
|
||||||
"z ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
"z ${configDir} 0755 nobody nogroup -"
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/var/lib/n8n" = {
|
fileSystems.${varDir} = {
|
||||||
device = "${xlib.dirs.services-mnt-folder}/n8n";
|
device = "${configDir}";
|
||||||
fsType = "none";
|
fsType = "none";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
|
|||||||
@@ -34,22 +34,6 @@ in
|
|||||||
"office.local" = {
|
"office.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
# locations = {
|
|
||||||
# "/" = {
|
|
||||||
# proxyPass = "http://localhost:8090";
|
|
||||||
# proxyWebsockets = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# extraConfig = ''
|
|
||||||
# proxy_set_header Host $host;
|
|
||||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
# proxy_set_header X-Forwarded-Host $host;
|
|
||||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
|
|
||||||
# proxy_http_version 1.1;
|
|
||||||
# proxy_set_header Upgrade $http_upgrade;
|
|
||||||
# proxy_set_header Connection "upgrade";
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
"bentopdf.local" = {
|
"bentopdf.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
@@ -154,22 +138,6 @@ in
|
|||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# "office.local" = {
|
|
||||||
# enableACME = false;
|
|
||||||
# forceSSL = false;
|
|
||||||
# locations = {
|
|
||||||
# "/" = {
|
|
||||||
# proxyPass = "http://${server}:8000"; # 9980
|
|
||||||
# proxyWebsockets = true;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# extraConfig = ''
|
|
||||||
# client_max_body_size 5G;
|
|
||||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
# proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
# ''; # absolute_redirect off;
|
|
||||||
# };
|
|
||||||
"calibre.local" = {
|
"calibre.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user