forked from tdjsnelling/sqtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
traefik.yml
43 lines (43 loc) · 924 Bytes
/
traefik.yml
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
http:
routers:
api:
service: api
entryPoints:
- web
rule: "Host(`example.com`) && PathPrefix(`/api`, `/sq`)"
middlewares:
- api-prefix
- apiHostHeaderSet
tls:
certResolver: tlsresolver
client:
service: client
entryPoints:
- web
rule: "Host(`example.com`) && PathPrefix(`/`)"
middlewares:
- clientHostHeaderSet
tls:
certResolver: tlsresolver
services:
api:
loadBalancer:
servers:
- url: http://sq_api:3001
client:
loadBalancer:
servers:
- url: http://sq_client:3000
middlewares:
api-prefix:
stripPrefix:
prefixes:
- /api
clientHostHeaderSet:
headers:
customRequestHeaders:
Host: "sq_client"
apiHostHeaderSet:
headers:
customRequestHeaders:
Host: "sq_api"