dotfiles/hosts/h001/mods/n8n.nix
RingOfStorms (Joshua Bell) 14b0eaff08 n8n stuff
2025-10-08 14:03:31 -05:00

33 lines
674 B
Nix

{
...
}:
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/";
};
};
}