try n8n
This commit is contained in:
@@ -15,19 +15,6 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf (config.sysconfig.docker."${name}".enable && config.sysconfig.docker.enable) {
|
config = lib.mkIf (config.sysconfig.docker."${name}".enable && config.sysconfig.docker.enable) {
|
||||||
|
|
||||||
environment.etc."resolv.conf" = {
|
|
||||||
enable = true;
|
|
||||||
text = ''
|
|
||||||
nameserver 127.0.0.1
|
|
||||||
nameserver 1.1.1.1
|
|
||||||
nameserver 1.0.0.1
|
|
||||||
options edns0
|
|
||||||
'';
|
|
||||||
|
|
||||||
user = "root";
|
|
||||||
mode = "0664";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.interfaces = {
|
networking.firewall.interfaces = {
|
||||||
"ve-traefik" = {
|
"ve-traefik" = {
|
||||||
allowedTCPPorts = [ hostPort ];
|
allowedTCPPorts = [ hostPort ];
|
||||||
@@ -52,7 +39,8 @@ in {
|
|||||||
"traefik.http.routers.${name}.service" = "${name}";
|
"traefik.http.routers.${name}.service" = "${name}";
|
||||||
"traefik.http.routers.${name}.tls.certResolver" = "cloudflare";
|
"traefik.http.routers.${name}.tls.certResolver" = "cloudflare";
|
||||||
|
|
||||||
"traefik.http.services.${name}.loadbalancer.server.url" = "http://192.168.100.10:${builtins.toString hostPort}";
|
"traefik.http.services.${name}.loadbalancer.server.port" = "5678";
|
||||||
|
# "traefik.http.services.${name}.loadbalancer.server.url" = "http://192.168.100.10:${builtins.toString hostPort}";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = lib.mkIf config.sysconfig.docker.nvidia [
|
extraOptions = lib.mkIf config.sysconfig.docker.nvidia [
|
||||||
@@ -60,7 +48,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
"${builtins.toString hostPort}:5678"
|
# "${builtins.toString hostPort}:5678"
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|||||||
Reference in New Issue
Block a user