diff --git a/modules/global.nix b/modules/global.nix index d16844b..6060579 100644 --- a/modules/global.nix +++ b/modules/global.nix @@ -37,9 +37,9 @@ with lib; }; traefikDynamicConfigDir = mkOption { type = types.str; - 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)"; + 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)"; }; }; diff --git a/modules/services/traefik.nix b/modules/services/traefik.nix index 3b52643..65c68ea 100644 --- a/modules/services/traefik.nix +++ b/modules/services/traefik.nix @@ -142,12 +142,14 @@ helper.mkPodmanService { enable.default = true; traefikStaticConfigDir = mkOption { type = types.str; - 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)"; + default = "traefik"; + example = "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" ]; default = "ERROR"; + example = "ERROR"; description = "The level of detail Traefik should print in the logs."; }; # traefikDynamicConfigDir defined at global.nix