Debian Codegraph @

examples/react-spa/traefik.toml

raw
1 defaultEntryPoints = ["http"]
2
3 [log]
4 level = "DEBUG"
5
6 [api]
7 dashboard = true
8
9 [accessLog]
10
11
12 [providers]
13 providersThrottleDuration = 10
14 [providers.file]
15 filename = "traefik.toml"
16 directory = "/etc/traefik/"
17 watch = true
18
19
20 [entryPoints]
21 [entryPoints.web]
22 address = ":10000"
23
24 [http.routers]
25
26 [http.routers.django]
27 service = "django"
28 rule = "PathPrefix(`/accounts`) || PathPrefix(`/_allauth`) || PathPrefix(`/ninja`) || PathPrefix(`/drf`)"
29 entrypoints = ["web"]
30
31
32 [http.routers.react]
33 service = "react"
34 rule = "PathPrefix(`/`)"
35 entrypoints = ["web"]
36
37 [http.services]
38 [http.services.react.loadBalancer]
39 [[http.services.react.loadBalancer.servers]]
40 url = "http://frontend:3000"
41 [http.services.django.loadBalancer]
42 [[http.services.django.loadBalancer.servers]]
43 url = "http://backend:8000"