diff --git a/docs/content/operations/api.md b/docs/content/operations/api.md index f1500293a..636509f9e 100644 --- a/docs/content/operations/api.md +++ b/docs/content/operations/api.md @@ -46,7 +46,7 @@ And then define a routing configuration on Traefik itself with the ```yaml tab="Docker" # Dynamic Configuration labels: - - "traefik.http.routers.api.rule=Host(`traefik.domain.com`) + - "traefik.http.routers.api.rule=Host(`traefik.domain.com`)" - "traefik.http.routers.api.service=api@internal" - "traefik.http.routers.api.middlewares=auth" - "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" @@ -64,7 +64,7 @@ labels: ```yaml tab="Rancher" # Dynamic Configuration labels: - - "traefik.http.routers.api.rule=Host(`traefik.domain.com`) + - "traefik.http.routers.api.rule=Host(`traefik.domain.com`)" - "traefik.http.routers.api.service=api@internal" - "traefik.http.routers.api.middlewares=auth" - "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" @@ -73,15 +73,15 @@ labels: ```toml tab="File (TOML)" # Dynamic Configuration [http.routers.my-api] - rule="Host(`traefik.domain.com`) - service="api@internal" - middlewares=["auth"] - + rule = "Host(`traefik.domain.com`)" + service = "api@internal" + middlewares = ["auth"] + [http.middlewares.auth.basicAuth] - users = [ - "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", - "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0", - ] + users = [ + "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", + "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0", + ] ``` ```yaml tab="File (YAML)" diff --git a/docs/content/operations/dashboard.md b/docs/content/operations/dashboard.md index 169e136f2..166ffcb63 100644 --- a/docs/content/operations/dashboard.md +++ b/docs/content/operations/dashboard.md @@ -77,7 +77,7 @@ to allow defining: ```yaml tab="Docker" # Dynamic Configuration labels: - - "traefik.http.routers.api.rule=Host(`traefik.domain.com`) + - "traefik.http.routers.api.rule=Host(`traefik.domain.com`)" - "traefik.http.routers.api.service=api@internal" - "traefik.http.routers.api.middlewares=auth" - "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" @@ -95,7 +95,7 @@ to allow defining: ```yaml tab="Rancher" # Dynamic Configuration labels: - - "traefik.http.routers.api.rule=Host(`traefik.domain.com`) + - "traefik.http.routers.api.rule=Host(`traefik.domain.com`)" - "traefik.http.routers.api.service=api@internal" - "traefik.http.routers.api.middlewares=auth" - "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" @@ -104,15 +104,15 @@ to allow defining: ```toml tab="File (TOML)" # Dynamic Configuration [http.routers.my-api] - rule="Host(`traefik.domain.com`) - service="api@internal" - middlewares=["auth"] + rule = "Host(`traefik.domain.com`)" + service = "api@internal" + middlewares = ["auth"] [http.middlewares.auth.basicAuth] - users = [ - "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", - "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0", - ] + users = [ + "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", + "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0", + ] ``` ```yaml tab="File (YAML)"