Caddyfile - cloudflare/dyndns/subdomains/proxy

My Caddy has been running stable, but now I’m trying to add a sub-domain. I’ve been using tls cloudflare and dyndns for a few weeks now without issue. I’m not sure how to incorporate a sub-domain with those options enabled though. Any tips? I have been unable to find examples to help with this.

This Caddyfile will not load

domain.com www.domain.com {
   root /var/www/domain.com
}

wiki.domain.com {
   proxy / 192.168.5.10 {
    transparent
  }
}

   tls {
      dns cloudflare
   }

dyndns {
   provider cloudflare
   ipaddress http://whatismyip.akamai.com/
   auth APIKEY e-mail
   domains domain.com www.domain.com wiki.domain.com
   period 15m
}

Caddy will output what issue it had when parsing the Caddyfile before exiting. Check the output. Feel free to post it here if you need clarification.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.