-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
62 lines (53 loc) · 1.06 KB
/
Caddyfile
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
{
# Global Caddy configuration
admin off
# Logging
log {
level INFO
output file /var/log/caddy/access.log
}
}
# Renterd proxy with authentication and SSL
:443 {
# Basic authentication for Renterd
basicauth /* {
{$RENTERD_USERNAME} {$RENTERD_PASSWORD}
}
# Proxy to Renterd
reverse_proxy localhost:9980 {
transport http {
tls_insecure_skip_verify
}
}
tls {
challenge http
}
}
## renterd s3 proxy with authentication and SSL
:444 {
# Proxy to renterd s3
reverse_proxy localhost:9981 {
transport http {
tls_insecure_skip_verify
}
}
tls {
challenge http
}
}
# Metrics exporter with authentication and SSL
:8080 {
# Basic authentication for metrics
basicauth /* {
{$METRICS_USERNAME} {$METRICS_PASSWORD}
}
# Proxy to metrics exporter
reverse_proxy localhost:9104 {
transport http {
tls_insecure_skip_verify
}
}
tls {
challenge http
}
}