-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
caddyfile: Merge identical certificate automation policies #3550
Comments
That config specifies two certificate automation policies for the same domain name, For now, remove your |
Aha... I thought we already did this... we just need to move this de-duplication call before the ambiguity check: caddy/caddyconfig/httpcaddyfile/tlsapp.go Lines 322 to 338 in 2d0f883
That should fix it. @zyclonite Would you please try moving line 338 between lines 323 and 324 and see if that works for you? (It does for me but I want to make sure you confirm it.) |
@mholt tested the fix and it works nicely on both ports serving the same certificate. |
Great, thanks for confirming |
What did you do?
Start caddy2 with Caddyfile formatted config to serve some content hosted on the same domain but on two different https ports.
For the example i switched to letsencrypt staging, to prevent accidentally running into a rate limit.
What did you expect to see?
caddy requesting one certificate from letsencrypt and making example.com available on port 443 and 444
this worked already well with caddy1
What did you see instead?
caddy did not startup and failed with the following exception
adapting config using caddyfile: hostname appears in more than one automation policy, making certificate management ambiguous: example.com
Caddy version
latest docker container version
2.1.1
What is your environment & configuration?
docker command used
Caddyfile
Log output
The text was updated successfully, but these errors were encountered: