diff --git a/configuration.go b/configuration.go index 4443a2508..e89755e60 100644 --- a/configuration.go +++ b/configuration.go @@ -35,7 +35,7 @@ type Server struct { } type Route struct { - Category string + Rule string Value string } diff --git a/providerTemplates/docker.tmpl b/providerTemplates/docker.tmpl index bbc0be8fe..99c439107 100644 --- a/providerTemplates/docker.tmpl +++ b/providerTemplates/docker.tmpl @@ -9,6 +9,6 @@ {{$container := index $containers 0}} backend = "backend-{{getBackend $container}}" [frontends.frontend-{{$host}}.routes.route-host-{{$host}}] - category = "Host" + rule = "Host" value = "{{$host}}.{{$.Domain}}" {{end}} \ No newline at end of file diff --git a/providerTemplates/marathon.tmpl b/providerTemplates/marathon.tmpl index bd70edeab..895d494dc 100644 --- a/providerTemplates/marathon.tmpl +++ b/providerTemplates/marathon.tmpl @@ -14,6 +14,6 @@ [frontends.frontend{{.ID | replace "/" "-"}}] backend = "backend{{.ID | replace "/" "-"}}" [frontends.frontend-{{getHost . | replace "/" "-"}}.routes.route-host-{{getHost . | replace "/" "-"}}] - category = "Host" + rule = "Host" value = "{{getHost . | replace "/" "-"}}.{{$.Domain}}" {{end}} \ No newline at end of file diff --git a/templates/configuration.tmpl b/templates/configuration.tmpl index 77f50dec0..ff71ed6d7 100644 --- a/templates/configuration.tmpl +++ b/templates/configuration.tmpl @@ -39,13 +39,13 @@
Route | -Category | +Rule | Value |
{{$keyRoutes}} | -{{$valueRoutes.Category}} | +{{$valueRoutes.Rule}} | {{$valueRoutes.Value}} |