Compare commits
2 commits
58f5e8b91c
...
596b7a877b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
596b7a877b | ||
|
|
14b0eaff08 |
3 changed files with 42 additions and 0 deletions
|
|
@ -10,5 +10,6 @@
|
||||||
./openwebui.nix
|
./openwebui.nix
|
||||||
./trilium.nix
|
./trilium.nix
|
||||||
./oauth2-proxy.nix
|
./oauth2-proxy.nix
|
||||||
|
./n8n.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
33
hosts/h001/mods/n8n.nix
Normal file
33
hosts/h001/mods/n8n.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
port = 5678;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = { };
|
||||||
|
config = {
|
||||||
|
services.nginx.virtualHosts = {
|
||||||
|
"n8n.joshuabell.xyz" = {
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://127.0.0.1:${port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Expose litellm to my overlay network as well
|
||||||
|
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ port ];
|
||||||
|
|
||||||
|
services.n8n = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
systemd.services.n8n.environment = {
|
||||||
|
# N8N_SECURE_COOKIE = "false";
|
||||||
|
N8N_EDITOR_BASE_URL = "https://n8n.joshuabell.xyz/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -163,6 +163,14 @@
|
||||||
proxyPass = "http://100.64.0.13";
|
proxyPass = "http://100.64.0.13";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"n8n.joshuabell.xyz" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://100.64.0.13";
|
||||||
|
};
|
||||||
|
};
|
||||||
"notes.joshuabell.xyz" = {
|
"notes.joshuabell.xyz" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue