services.traefik.dynamic.files

Dynamic configuration files to write. These are symlinked in services.traefik.dynamic.dir upon activation, allowing configuration to be upated without restarting the primary daemon.

Due to a limitation in Traefik; any syntax error in a dynamic configuration will cause the entire file provider to be ignored. This may cause interuption in service, which may include access to the Traefik dashboard, if enabled and configured.

Type
attribute set of (submodule)
Default
{ }
Example
{
  dashboard = {
    settings = {
      http = {
        routers = {
          api = {
            rule = "Host(`198.51.100.1`)";
            service = "api@internal";
          };
        };
      };
    };
  };
}
Declared
<nixpkgs/nixos/modules/services/web-servers/traefik.nix>