Split up ACME challenges

still trying to figure out (as I have a “fun” challenge):

using example.com for the “public IPs” accessible via firewall, and example.net for internal (RFC1918 IPs).

api.example.com api.example.net {
  reverse_proxy internal:port
}

how would I specify that api.example.com is normal HTTP01 and api.example.net in DNS01 authentications? or would I have to duplicate/split them (using snippets to simplify Caddyfile)?

Yeah, in this case you should split this into two sites:

api.example.net {
	tls {
		dns <provider>
	}
	reverse_proxy internal:port
}

api.example.com {
	reverse_proxy internal:port
}

Note that I moved your post into a new topic because it’s not strictly relevant to the wiki, but is its own question.

2 Likes

This topic was automatically closed after 29 days. New replies are no longer allowed.