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
{
listen = {
addrs = [
"if#lo"
]
insecure_port = 18080
tls_port = 18443
}
vhosts = [
{
hostname = "www.example.com"
tls = {
files = {
keyfile = "target/certs/www.example.com.key"
certfile = "target/certs/www.example.com.crt"
}
}
backends = [
{
context = "/"
url = "http://127.0.0.1:19090"
}
]
}
{
hostname = "test.example.com"
tls = {
files = {
keyfile = "target/certs/test.example.com.key"
certfile = "target/certs/test.example.com.crt"
}
}
backends = [
{
context = "/"
url = "http://127.0.0.1:19091"
}
]
}
]
}