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