mirror of
https://github.com/containous/traefik.git
synced 2025-10-16 23:33:20 +03:00
Fix yaml documentation
This commit is contained in:
@@ -60,14 +60,17 @@ and [Docker Swarm Mode](https://docs.docker.com/engine/swarm/).
|
|||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
# swarm classic (1.12-)
|
# swarm classic (1.12-)
|
||||||
# endpoint = "tcp://127.0.0.1:2375"
|
# endpoint: "tcp://127.0.0.1:2375"
|
||||||
# docker swarm mode (1.12+)
|
# docker swarm mode (1.12+)
|
||||||
endpoint: "tcp://127.0.0.1:2375"
|
endpoint: "tcp://127.0.0.1:2377"
|
||||||
swarmMode: true
|
swarmMode: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--providers.docker.endpoint=tcp://127.0.0.1:2375
|
# swarm classic (1.12-)
|
||||||
|
# --providers.docker.endpoint=tcp://127.0.0.1:2375
|
||||||
|
# docker swarm mode (1.12+)
|
||||||
|
--providers.docker.endpoint=tcp://127.0.0.1:2377
|
||||||
--providers.docker.swarmMode=true
|
--providers.docker.swarmMode=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ _Optional, Default=empty_
|
|||||||
```yaml tab="File (YAML)"
|
```yaml tab="File (YAML)"
|
||||||
providers:
|
providers:
|
||||||
kubernetesIngress:
|
kubernetesIngress:
|
||||||
endpoint = "http://localhost:8080"
|
endpoint: "http://localhost:8080"
|
||||||
# ...
|
# ...
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ _Optional, Default=empty_
|
|||||||
```yaml tab="File (YAML)"
|
```yaml tab="File (YAML)"
|
||||||
providers:
|
providers:
|
||||||
kubernetesIngress:
|
kubernetesIngress:
|
||||||
token = "mytoken"
|
token: "mytoken"
|
||||||
# ...
|
# ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -75,14 +75,17 @@ Attach labels to your containers and let Traefik do the rest!
|
|||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
# swarm classic (1.12-)
|
# swarm classic (1.12-)
|
||||||
# endpoint = "tcp://127.0.0.1:2375"
|
# endpoint: "tcp://127.0.0.1:2375"
|
||||||
# docker swarm mode (1.12+)
|
# docker swarm mode (1.12+)
|
||||||
endpoint: "tcp://127.0.0.1:2375"
|
endpoint: "tcp://127.0.0.1:2377"
|
||||||
swarmMode: true
|
swarmMode: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash tab="CLI"
|
```bash tab="CLI"
|
||||||
--providers.docker.endpoint=tcp://127.0.0.1:2375
|
# swarm classic (1.12-)
|
||||||
|
# --providers.docker.endpoint=tcp://127.0.0.1:2375
|
||||||
|
# docker swarm mode (1.12+)
|
||||||
|
--providers.docker.endpoint=tcp://127.0.0.1:2377
|
||||||
--providers.docker.swarmMode=true
|
--providers.docker.swarmMode=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -592,7 +592,7 @@ http:
|
|||||||
# maxBodySize is the maximum size allowed for the body of the request.
|
# maxBodySize is the maximum size allowed for the body of the request.
|
||||||
# If the body is larger, the request is not mirrored.
|
# If the body is larger, the request is not mirrored.
|
||||||
# Default value is -1, which means unlimited size.
|
# Default value is -1, which means unlimited size.
|
||||||
maxBodySize = 1024
|
maxBodySize: 1024
|
||||||
mirrors:
|
mirrors:
|
||||||
- name: appv2
|
- name: appv2
|
||||||
percent: 10
|
percent: 10
|
||||||
|
Reference in New Issue
Block a user