mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 17:45:37 +00:00
22 lines
344 B
Nix
22 lines
344 B
Nix
|
{ ... }: {
|
||
|
|
||
|
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"; }];
|
||
|
}];
|
||
|
}];
|
||
|
|
||
|
}
|