change n8n to be behind reverse proxy
This commit is contained in:
parent
596b7a877b
commit
c22f742013
1 changed files with 8 additions and 5 deletions
|
|
@ -1,9 +1,6 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
let
|
||||
port = 5678;
|
||||
in
|
||||
{
|
||||
options = { };
|
||||
config = {
|
||||
|
|
@ -13,21 +10,27 @@ in
|
|||
"/" = {
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:${port}";
|
||||
proxyPass = "http://127.0.0.1:5678";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Expose litellm to my overlay network as well
|
||||
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ port ];
|
||||
# networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ port ];
|
||||
|
||||
services.n8n = {
|
||||
enable = true;
|
||||
};
|
||||
systemd.services.n8n.environment = {
|
||||
# N8N_SECURE_COOKIE = "false";
|
||||
N8N_LISTEN_ADDRESS = "127.0.0.1";
|
||||
N8N_EDITOR_BASE_URL = "https://n8n.joshuabell.xyz/";
|
||||
N8N_HOST = "n8n.joshuabell.xyz";
|
||||
VUE_APP_URL_BASE_API = "https://n8n.joshuabell.xyz/";
|
||||
N8N_HIRING_BANNER_ENABLED = "false";
|
||||
N8N_PUBLIC_API_DISABLED = "true";
|
||||
N8N_PUBLIC_API_SWAGGERUI_DISABLED = "true";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue