MyNixOS website logo
option

services.traefik.dynamicConfigOptions

Dynamic configuration for Traefik.

Declarations
Type
JSON value
Default
{ }
Example
{
  http = {
    routers = {
      router1 = {
        rule = "Host(`localhost`)";
        service = "service1";
      };
    };
    services = {
      service1 = {
        loadBalancer = {
          servers = [
            {
              url = "http://localhost:8080";
            }
          ];
        };
      };
    };
  };
}