Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- debug
- # from https://github.com/CaddyBuilds/caddy-cloudflare?tab=readme-ov-file#acme-dns-challenge-configuration
- acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
- servers {
- trusted_proxies cloudflare {
- # from https://github.com/WeidiDeng/caddy-cloudflare-ip
- interval 12h
- timeout 60s
- }
- # from https://github.com/CaddyBuilds/caddy-cloudflare?tab=readme-ov-file#sample-caddyfile-with-cloudflare-ip-trust
- client_ip_headers Cf-Connecting-Ip
- }
- log {
- }
- }
- eddified.org, *.eddified.org {
- tls {
- dns cloudflare {env.CLOUDFLARE_API_TOKEN}
- resolvers 1.1.1.1 1.0.0.1 # avoids local dns caching, seems to get around a timeout problem i was having while getting the certs
- propagation_timeout 4m # Default ~2m; increase to 4-5m
- propagation_delay 30s # Wait 30s after TXT creation before checking
- }
- log {
- }
- }
- www.eddified.org {
- redir https://eddified.org{uri}
- }
- https://eddified.org {
- root * /srv
- file_server
- log {
- }
- }
- https://plex.eddified.org:443 {
- reverse_proxy lenovo.local:32400
- }
Advertisement
Add Comment
Please, Sign In to add comment