From 52f9057ee59601193d9424d981fd353d1cc4b57c Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 21 Nov 2022 01:04:22 +0000 Subject: [PATCH] unused n8n setup --- modules/services/n8n.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/services/n8n.nix diff --git a/modules/services/n8n.nix b/modules/services/n8n.nix new file mode 100644 index 0000000..fe0c5ea --- /dev/null +++ b/modules/services/n8n.nix @@ -0,0 +1,21 @@ +{ ... }: { + + services.n8n = { + enable = true; + settings = { + n8n = { + listenAddress = "127.0.0.1"; + port = 5678; + }; + }; + }; + + caddyRoutes = [{ + match = [{ host = [ config.n8nServer ]; }]; + handle = [{ + handler = "reverse_proxy"; + upstreams = [{ dial = "localhost:5678"; }]; + }]; + }]; + +}