-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile.sample
65 lines (59 loc) · 1.49 KB
/
Caddyfile.sample
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
59
60
61
62
63
64
65
{
servers {
metrics
}
}
(whitelistIP) {
remote_ip 0.0.0.0/0
}
# Access to everything.
(authorised-users) {
}
http:// {
# tls /certs/node.crt /certs/node.key
log {
output stderr
format filter {
wrap console
fields {
request>headers>Authorization delete
}
}
}
# ------------------------- Beacon API --------------------------
@beaconapi {
import whitelistIP
path /beaconapi/*
}
basicauth @beaconapi {
import authorised-users
}
handle @beaconapi {
reverse_proxy http://localhost:5052
uri strip_prefix /beaconapi
}
# ------------------------- Execution API --------------------------
@elapi {
import whitelistIP
path /elapi/*
}
handle @elapi {
reverse_proxy http://localhost:8545
uri strip_prefix /elapi
}
basicauth @elapi {
import authorised-users
}
# ------------------------- Prometheus --------------------------
@prometheus {
import whitelistIP
path /promhttp/*
}
handle @prometheus {
reverse_proxy http://localhost:9090
uri strip_prefix /promhttp
}
basicauth @prometheus {
import authorised-users
}
}