-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
32 lines (28 loc) · 859 Bytes
/
Caddyfile
File metadata and controls
32 lines (28 loc) · 859 Bytes
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
(cloudflare) {
tls {
dns cloudflare YOUR_API_CODE_NO_QUOTES
propagation_delay 90s #My whole system can take a long time, but I feel that's just me, you may be able to remove this.
}
}
# Template for proxying to backends with self-signed certs
(selfsigned_proxy) {
reverse_proxy https://{args[0]} {
transport http {
tls_insecure_skip_verify
}
}
import cloudflare
}
# Template for plain HTTP backends
(plain_proxy) {
reverse_proxy {args[0]}
import cloudflare
}
# --- Services using self-signed HTTPS on backend ---
https_service.yourhomelab.com {
import selfsigned_proxy 10.0.2.5:8080
}
# --- Services using HTTP on backend ---
http_service.yourhomelab.com {
import plain_proxy 10.0.2.10:9000
}