# rules.toml
[web]
address = ":8081"
[docker]
domain = "mysite.io"
watch = true
swarmmode = true
defaultEntryPoints = [alternate]
[entryPoints]
[entryPoints.main]
address = “:80”
[entryPoints.alternate]
address = “:8080”
defaultEntryPoints = [alternate]
[entryPoints]
[entryPoints.http.auth.basic]
users = ["vasili:7f5407a67f5a368281e1222272ffad9d/"]
[entryPoints.main]
address = “:80”
[entryPoints.alternate]
address = “:8080”
[backends]
[backends.backend1]
url = "http://192.168.1.1:8080"
[backends.backend2]
url = "http://localhost:9000"
[backends.backend3]
url = "http://172.17.0.1:8081"
[backends.backend4]
url = "http://localhost:3003"
[backends.backend5]
url = "http://localhost:3001"
[backends.backend6]
url = "http://localhost:3002"
[backends.backend7]
url = "http://192.168.1.119:80"
[frontends]
[frontends.frontend1]
backend = “backend1"
passHostHeader = true
rule = “Host:router.mysite.io”
entrypoint = "alternate"
[frontends.frontend2]
backend = "backend2"
passHostHeader = true
rule = "Host:docker.mysite.io”
[frontends.frontend3]
backend = "backend3"
passHostHeader = true
rule = "Host:proxy.mysite.io”
[frontends.frontend4]
backend = “backend4”
passHostHeader = true
rule = "Host:marketsite.net”
[frontends.frontend5]
backend = “backend5”
passHostHeader = true
rule = "Host:mysite.io”
[frontends.frontend6]
backend = “backend6”
passHostHeader = true
rule = "Host:worksite.io”
[frontends.frontend7]
backend = “backend7”
passHostHeader = true
rule = "Path:anothermarketsite.com”
[frontends.frontend8]
backend = “backend7”
passHostHeader = true
rule = "Path:onemoremarketsite.com”
[frontends.frontend9]
backend = “backend7”
passHostHeader = true
rule = "vineyardsite.com”