36 lines
810 B
TOML
36 lines
810 B
TOML
logLevel = "DEBUG"
|
|
|
|
defaultEntryPoints = ["http", "https"]
|
|
|
|
[entryPoints]
|
|
[entryPoints.http]
|
|
address = ":8888"
|
|
[entryPoints.http.redirect]
|
|
entryPoint = "https"
|
|
[entryPoints.https]
|
|
address = ":8443"
|
|
[entryPoints.https.tls]
|
|
|
|
[api]
|
|
|
|
[file]
|
|
|
|
[backends]
|
|
[backends.backend1]
|
|
[backends.backend1.servers.server1]
|
|
url = "http://127.0.0.1:80"
|
|
weight = 1
|
|
|
|
[frontends]
|
|
[frontends.frontend1]
|
|
backend = "backend1"
|
|
[frontends.frontend1.routes.test_1]
|
|
rule = "Host: example.com; PathPrefixStrip: /api"
|
|
[frontends.frontend2]
|
|
backend = "backend1"
|
|
[frontends.frontend2.routes.test_1]
|
|
rule = "Host: test.com; AddPrefix: /foo"
|
|
[frontends.frontend3]
|
|
backend = "backend1"
|
|
[frontends.frontend3.routes.test_1]
|
|
rule = "Host: foo.com; PathPrefixStripRegex: /{id:[a-z]+}"
|