-
Notifications
You must be signed in to change notification settings - Fork 1
/
Caddyfile.sample
50 lines (45 loc) · 1.1 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
{
servers {
metrics
}
}
(whitelistIP) {
remote_ip 0.0.0.0/0
}
# Access to everything.
(authorised-users) {
}
http:// {
log {
output stderr
format filter {
wrap console
fields {
request>headers>Authorization delete
}
}
}
# ------------------------- Prometheus --------------------------
@prometheus {
import whitelistIP
path /promhttp/*
}
handle @prometheus {
reverse_proxy http://localhost:9090
uri strip_prefix /promhttp
}
basicauth @prometheus {
import authorised-users
}
# ------------------------- Victoria Metrics --------------------------
@victoria {
import whitelistIP
path /victoria/*
}
handle @victoria {
reverse_proxy http://localhost:8428
}
basicauth @victoria {
import authorised-users
}
}