summarylogtreecommitdiffstats
path: root/Caddyfile-example
blob: f3d5e64d520ec1683615ca7ed4345c7624363671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# For the "reverse-proxy with auto TLS certificate", add entries as follows.
# Don't forget to set `CLOUDFLARE_API_TOKEN`, e.g., in /var/lib/caddy/envfile
#
# example.com {
# 	reverse_proxy localhost:8080
# 	tls {
# 		dns cloudflare {env.CLOUDFLARE_API_TOKEN}
# 	}
# }
#
# example.net {
# 	reverse_proxy localhost:8800
# 	tls {
# 		dns cloudflare {env.CLOUDFLARE_API_TOKEN}
# 	}
# }