-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraefik.toml
54 lines (42 loc) · 1.28 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
47
48
49
50
51
52
53
54
[log]
level = "TRACE"
[accessLog]
[api]
insecure = true
dashboard = true
[entryPoints]
[entryPoints.web]
address = ":80"
[http]
[http.routers]
[http.routers.frontend]
rule = "PathPrefix(`/frontend`)"
service = "frontend"
entryPoints = ["web"]
[http.routers.electric]
rule = "PathPrefix(`/electric`)"
service = "electric"
entryPoints = ["web"]
middlewares = ["stripElectricPrefix", "forwardAuth"]
[http.routers.todo]
rule = "PathPrefix(`/`)"
service = "todo"
entryPoints = ["web"]
[http.services]
[http.services.electric.loadBalancer]
[[http.services.electric.loadBalancer.servers]]
url = "http://electric:3000"
[http.services.todo.loadBalancer]
[[http.services.todo.loadBalancer.servers]]
url = "http://host.docker.internal:4000"
[http.services.frontend.loadBalancer]
[[http.services.frontend.loadBalancer.servers]]
url = "http://host.docker.internal:5000"
[http.middlewares]
[http.middlewares.forwardAuth.forwardAuth]
address = "http://host.docker.internal:4000/electric-authorization"
[http.middlewares.stripElectricPrefix.stripPrefix]
prefixes = ["/electric"]
[providers]
[providers.file]
filename = "/etc/traefik/traefik.toml"