-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraefik-hardcoded.yml
58 lines (49 loc) · 1.03 KB
/
traefik-hardcoded.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
providers:
file:
filename: traefik-hardcoded.yml
watch: true
api:
dashboard: true
insecure: true
log:
level: DEBUG
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
http:
routers:
all:
rule: "Host(`backend.yourgamedomain.com`)"
service: all-servers
node-1:
rule: "Host(`node-1.yourgamedomain.com`)"
service: node-1
node-2:
rule: "Host(`node-2.yourgamedomain.com`)"
service: node-2
services:
all-servers:
loadBalancer:
servers:
# node-1
- url: "http://localhost:2567/"
# node-2
- url: "http://localhost:2568/"
node-1:
loadBalancer:
# healthCheck:
# path: /__healthcheck
# interval: "10s"
# timeout: "3s"
servers:
- url: "http://localhost:2567/"
node-2:
loadBalancer:
# healthCheck:
# path: /__healthcheck
# interval: "10s"
# timeout: "3s"
servers:
- url: "http://localhost:2568/"