Edit code indentation for correct alignment
This commit is contained in:
parent
2171cb7f3d
commit
fe5a4a26f8
1 changed files with 16 additions and 16 deletions
|
@ -47,22 +47,22 @@ You can write one of these mutually exclusive configuration elements:
|
||||||
middlewares = ["my-basic-auth"]
|
middlewares = ["my-basic-auth"]
|
||||||
service = "service-foo"
|
service = "service-foo"
|
||||||
rule = "Path(`/foo`)"
|
rule = "Path(`/foo`)"
|
||||||
|
|
||||||
# Add the middleware
|
# Add the middleware
|
||||||
[http.middlewares]
|
[http.middlewares]
|
||||||
[http.middlewares.my-basic-auth.basicAuth]
|
[http.middlewares.my-basic-auth.basicAuth]
|
||||||
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
|
users = ["test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/",
|
||||||
"test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0"]
|
"test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0"]
|
||||||
usersFile = "etc/traefik/.htpasswd"
|
usersFile = "etc/traefik/.htpasswd"
|
||||||
|
|
||||||
# Add the service
|
# Add the service
|
||||||
[http.services]
|
[http.services]
|
||||||
[http.services.service-foo]
|
[http.services.service-foo]
|
||||||
[http.services.service-foo.loadBalancer]
|
[http.services.service-foo.loadBalancer]
|
||||||
[[http.services.service-foo.loadBalancer.servers]]
|
[[http.services.service-foo.loadBalancer.servers]]
|
||||||
url = "http://foo/"
|
url = "http://foo/"
|
||||||
[[http.services.service-foo.loadBalancer.servers]]
|
[[http.services.service-foo.loadBalancer.servers]]
|
||||||
url = "http://bar/"
|
url = "http://bar/"
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml tab="YAML"
|
```yaml tab="YAML"
|
||||||
|
|
Loading…
Reference in a new issue