-
Notifications
You must be signed in to change notification settings - Fork 0
/
traefik.toml
46 lines (38 loc) · 1.12 KB
/
traefik.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[global]
checkNewVersion = false
sendAnonymousUsage = false
# TODO: remove this later
[log]
level = "TRACE"
# TODO: remove this later
[accessLog]
# TODO: remove this later
[api]
insecure = true
# add entry points from which services will be accessible
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.websecure]
address = ":443"
# add docker provider but do not auto expose all containers
[providers.docker]
exposedByDefault = false
# This file provider is used to read in the traefik.toml file
# so routers and middlewares are available. This is strange
[providers.file]
filename = "/etc/traefik/traefik.toml"
# This router is only used to run the root-to-admin-redirect
# middleware. It does nothing else
[http.routers]
[http.routers.root-router]
entrypoints = ["web"]
middlewares = ["root-to-admin-redirect@file"]
rule = "Path(`/`)"
service = "noop@internal"
# This middleware redirects requests to / to the admin interface
[http.middlewares]
[http.middlewares.root-to-admin-redirect.redirectRegex]
regex = "^(https{0,1}://[^/]+?)/{0,1}$"
replacement = "${1}/admin/"
permanent = true