Adds missed quotes in api.md

This commit is contained in:
Руслан Корнев 2019-11-06 14:22:05 +03:00 committed by Traefiker Bot
parent 93cf947e2a
commit 7346b3e326
2 changed files with 19 additions and 19 deletions

View file

@ -46,7 +46,7 @@ And then define a routing configuration on Traefik itself with the
```yaml tab="Docker" ```yaml tab="Docker"
# Dynamic Configuration # Dynamic Configuration
labels: 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.service=api@internal"
- "traefik.http.routers.api.middlewares=auth" - "traefik.http.routers.api.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" - "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0"
@ -64,7 +64,7 @@ labels:
```yaml tab="Rancher" ```yaml tab="Rancher"
# Dynamic Configuration # Dynamic Configuration
labels: 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.service=api@internal"
- "traefik.http.routers.api.middlewares=auth" - "traefik.http.routers.api.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" - "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0"
@ -73,15 +73,15 @@ labels:
```toml tab="File (TOML)" ```toml tab="File (TOML)"
# Dynamic Configuration # Dynamic Configuration
[http.routers.my-api] [http.routers.my-api]
rule="Host(`traefik.domain.com`) rule = "Host(`traefik.domain.com`)"
service="api@internal" service = "api@internal"
middlewares=["auth"] middlewares = ["auth"]
[http.middlewares.auth.basicAuth] [http.middlewares.auth.basicAuth]
users = [ users = [
"test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
"test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0", "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0",
] ]
``` ```
```yaml tab="File (YAML)" ```yaml tab="File (YAML)"

View file

@ -77,7 +77,7 @@ to allow defining:
```yaml tab="Docker" ```yaml tab="Docker"
# Dynamic Configuration # Dynamic Configuration
labels: 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.service=api@internal"
- "traefik.http.routers.api.middlewares=auth" - "traefik.http.routers.api.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" - "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" ```yaml tab="Rancher"
# Dynamic Configuration # Dynamic Configuration
labels: 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.service=api@internal"
- "traefik.http.routers.api.middlewares=auth" - "traefik.http.routers.api.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" - "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)" ```toml tab="File (TOML)"
# Dynamic Configuration # Dynamic Configuration
[http.routers.my-api] [http.routers.my-api]
rule="Host(`traefik.domain.com`) rule = "Host(`traefik.domain.com`)"
service="api@internal" service = "api@internal"
middlewares=["auth"] middlewares = ["auth"]
[http.middlewares.auth.basicAuth] [http.middlewares.auth.basicAuth]
users = [ users = [
"test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/", "test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
"test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0", "test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0",
] ]
``` ```
```yaml tab="File (YAML)" ```yaml tab="File (YAML)"