-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Do you want to request a feature or report a bug?
Bug
What did you do?
With traefik v2 it is possible to have more then one acme certificate resolver.
This is very useful for case where it is desired to use different mail addresses for different domains or to use tlschallenge with one and dnschallenge with another domain.
But this leads also to having to set a storage file for each of the certificate resolvers.
The documentation is missing any information on if it is possible to use the same storage file for both resolvers or why it may be not recommended.
So fare my first impression was that since it does not mention that this is not supported by the acme implementation and traefik does not display a warning or error an startup that it should be fine. But still then it feels fishy and a short mention in the documentation would give me more confidence in my setup.
What did you expect to see?
At least a note or info text in the documentation for the storage option at https://docs.traefik.io/https/acme/#storage
What did you see instead?
No mention of this case.
Output of traefik version: (What version of Traefik are you using?)
Version: 2.0.2
Codename: montdor
Go version: go1.13.1
Built: 2019-10-09T19:26:05Z
OS/Arch: linux/amd64
Example setup
Here two resolver are configured with both using the same file.
docker run -it \
--name traefik \
--volume /var/run/docker.sock:/var/run/docker.sock \
--publish 80:80 \
--publish 443:443 \
traefik:v2.0.2 \
--certificatesresolvers.dns=true \
--certificatesresolvers.dns.acme.dnschallenge \
--certificatesresolvers.dns.acme.dnschallenge.provider=gcloud \
--certificatesresolvers.dns.acme.email=jan@jansauer.de \
--certificatesresolvers.dns.acme.storage=/letsencrypt/acme.json \
--certificatesresolvers.tls=true \
--certificatesresolvers.tls.acme.tlschallenge \
--certificatesresolvers.tls.acme.email=jan@jansauer.de \
--certificatesresolvers.tls.acme.storage=/letsencrypt/acme.json \
--entrypoints.web.address=:80 \
--entryPoints.tls.address=:443 \
--providers.docker \
--log.level=DEBUG