services.traefik.dynamic.settings

Dynamic configuration for Traefik, written in Nix. This option is intended for easily migrating pre-26.05 Traefik configurations, and will be removed in NixOS 26.11.

Configurations added here will be translated into a file for services.traefik.dynamic.files, named custom-migrated.

Type
JSON value
Default
{ }
Example
{
  http = {
    routers = {
      api = {
        rule = "Host(`localhost`)";
        service = "api@internal";
      };
    };
  };
}
Declared
<nixpkgs/nixos/modules/services/web-servers/traefik.nix>