Fixed bad path for Traefik configuration files.
This commit is contained in:
+3
-3
@@ -37,9 +37,9 @@ with lib;
|
|||||||
};
|
};
|
||||||
traefikDynamicConfigDir = mkOption {
|
traefikDynamicConfigDir = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/etc/traefik/rules";
|
default = "/traefik/rules";
|
||||||
example = "/etc/traefik/rules";
|
example = "/traefik/rules";
|
||||||
description = "! Choosing a directory outside of /etc/ will break things ! The directory where Traefik's dynamic configuration files will be stored";
|
description = "The directory where Traefik's dynamic configuration files will be stored, appended to /etc (i.e. to get /etc/traefik/rules as final path, enter /traefik/rules)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ helper.mkPodmanService {
|
|||||||
};
|
};
|
||||||
dirPermissions = [
|
dirPermissions = [
|
||||||
"100999:users ${cfg.configDir}"
|
"100999:users ${cfg.configDir}"
|
||||||
"100999:users ${cfg.traefikStaticConfigDir}"
|
"100999:users /etc${cfg.traefikStaticConfigDir}"
|
||||||
"100999:users ${config.numbus.services.traefikDynamicConfigDir}"
|
"100999:users /etc${config.numbus.services.traefikDynamicConfigDir}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Compose file good
|
# Compose file good
|
||||||
@@ -41,8 +41,8 @@ helper.mkPodmanService {
|
|||||||
- "80:80/tcp"
|
- "80:80/tcp"
|
||||||
- "443:443/tcp"
|
- "443:443/tcp"
|
||||||
volumes:
|
volumes:
|
||||||
- ${cfg.traefikStaticConfigDir}/config.yaml:/etc/traefik/traefik.yaml:ro
|
- /etc${cfg.traefikStaticConfigDir}/config.yaml:/etc/traefik/traefik.yaml:ro
|
||||||
- ${config.numbus.services.traefikDynamicConfigDir}:/etc/traefik/conf:ro
|
- /etc${config.numbus.services.traefikDynamicConfigDir}:/etc/traefik/conf:ro
|
||||||
- ${cfg.configDir}:/var/traefik/certs:rw
|
- ${cfg.configDir}:/var/traefik/certs:rw
|
||||||
environment:
|
environment:
|
||||||
- CF_DNS_API_TOKEN=$CLOUDFLARE_DNS_API_TOKEN
|
- CF_DNS_API_TOKEN=$CLOUDFLARE_DNS_API_TOKEN
|
||||||
@@ -142,8 +142,8 @@ helper.mkPodmanService {
|
|||||||
enable.default = true;
|
enable.default = true;
|
||||||
traefikStaticConfigDir = mkOption {
|
traefikStaticConfigDir = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/etc/traefik";
|
default = "/traefik";
|
||||||
description = "The path of the directory containing Traefik's static configuration file";
|
description = "The path of the directory containing Traefik's static configuration file, appended to /etc (i.e. to get /etc/traefik as final path, enter /traefik)";
|
||||||
};
|
};
|
||||||
logLevel = mkOption {
|
logLevel = mkOption {
|
||||||
type = types.enum [ "TRACE" "DEBUG" "INFO" "WARN" "ERROR" "FATAL" ];
|
type = types.enum [ "TRACE" "DEBUG" "INFO" "WARN" "ERROR" "FATAL" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user