Guest User

old way Caddyfile

a guest
Jan 9th, 2026
1,121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.33 KB | None | 0 0
  1. {
  2.   acme_dns cloudflare {$CLOUDFLARE_API_TOKEN}
  3. }
  4.  
  5. {$MY_DOMAIN} {
  6.     reverse_proxy homer:8080
  7. }
  8.  
  9. *.{$MY_DOMAIN} {
  10.     @a host a.{$MY_DOMAIN}
  11.     handle @a {
  12.         reverse_proxy whoami:80
  13.     }
  14.  
  15.     @b host b.{$MY_DOMAIN}
  16.     handle @b {
  17.         reverse_proxy nginx:80
  18.     }
  19.  
  20.     handle {
  21.         abort
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment