eddified

caddy config

Oct 20th, 2025 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. {
  2. debug
  3. # from https://github.com/CaddyBuilds/caddy-cloudflare?tab=readme-ov-file#acme-dns-challenge-configuration
  4. acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
  5. servers {
  6. trusted_proxies cloudflare {
  7. # from https://github.com/WeidiDeng/caddy-cloudflare-ip
  8. interval 12h
  9. timeout 60s
  10. }
  11. # from https://github.com/CaddyBuilds/caddy-cloudflare?tab=readme-ov-file#sample-caddyfile-with-cloudflare-ip-trust
  12. client_ip_headers Cf-Connecting-Ip
  13. }
  14. log {
  15. }
  16. }
  17.  
  18. eddified.org, *.eddified.org {
  19. tls {
  20. dns cloudflare {env.CLOUDFLARE_API_TOKEN}
  21. 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
  22. propagation_timeout 4m # Default ~2m; increase to 4-5m
  23. propagation_delay 30s # Wait 30s after TXT creation before checking
  24. }
  25. log {
  26. }
  27. }
  28.  
  29. www.eddified.org {
  30. redir https://eddified.org{uri}
  31. }
  32.  
  33. https://eddified.org {
  34. root * /srv
  35. file_server
  36. log {
  37. }
  38. }
  39.  
  40. https://plex.eddified.org:443 {
  41. reverse_proxy lenovo.local:32400
  42. }
  43.  
Advertisement
Add Comment
Please, Sign In to add comment