From 7346b3e326dfb75196c044d46e61ac90fcf51b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=9A=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D0=B5=D0=B2?= Date: Wed, 6 Nov 2019 14:22:05 +0300 Subject: [PATCH] Adds missed quotes in api.md --- docs/content/operations/api.md | 20 ++++++++++---------- docs/content/operations/dashboard.md | 18 +++++++++--------- 2 files changed, 19 insertions(+), 19 deletions(-) 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)"