mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 06:30:10 +03:00
n8n added
This commit is contained in:
+10
-6
@@ -6,11 +6,15 @@
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
configDir = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||
varDir = "/var/lib/n8n";
|
||||
in
|
||||
{
|
||||
services.n8n = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
environment = {
|
||||
# N8N_USER_FOLDER = lib.mkForce "${xlib.dirs.services-mnt-folder}/n8n";
|
||||
# N8N_USER_FOLDER = lib.mkForce "${configDir}";
|
||||
N8N_SECURE_COOKIE = "false";
|
||||
N8N_PORT = 5678;
|
||||
};
|
||||
@@ -18,12 +22,12 @@
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
||||
"z ${xlib.dirs.services-mnt-folder}/n8n 0755 nobody nogroup -"
|
||||
"d ${configDir} 0755 nobody nogroup -"
|
||||
"z ${configDir} 0755 nobody nogroup -"
|
||||
];
|
||||
|
||||
fileSystems."/var/lib/n8n" = {
|
||||
device = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||
fileSystems.${varDir} = {
|
||||
device = "${configDir}";
|
||||
fsType = "none";
|
||||
options = [
|
||||
"bind"
|
||||
|
||||
@@ -34,22 +34,6 @@ in
|
||||
"office.local" = {
|
||||
forceSSL = 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" = {
|
||||
forceSSL = false;
|
||||
@@ -154,22 +138,6 @@ in
|
||||
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" = {
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
|
||||
Reference in New Issue
Block a user