I’m running Ubuntu 18.04 and migrating my services to running in docker and using Traefik as a reverse proxy and with my own domain. I’ve configured the dns to cloudfare and ddclient seems to be updating the ip correctly. I’ve moved all the services to containers already, and they are working through my existing nginx proxy (where I am also using lets encrypt and certbot) but with a different duckdns.org domain.
The issue is when I start up traefik within the docker I get the following errors:
traefik | 2018-08-08T07:15:26.390420900Z time=“2018-08-08T07:15:26Z” level=info msg=“Server configuration reloaded on :80”
traefik | 2018-08-08T07:15:26.390424673Z time=“2018-08-08T07:15:26Z” level=info msg=“Server configuration reloaded on :443”
traefik | 2018-08-08T07:15:26.390427903Z time=“2018-08-08T07:15:26Z” level=info msg=“Server configuration reloaded on :8080”
traefik | 2018-08-08T07:15:45.364252694Z time=“2018-08-08T07:15:45Z” level=debug msg=“No certificate provided dynamically can check the domain “xxx.duckdns.org”, a per default certificate will be used.”
traefik | 2018-08-08T07:15:45.558611146Z time=“2018-08-08T07:15:45Z” level=debug msg=“http: TLS handshake error from 18.104.22.168:52982: remote error: tls: bad certificate”
This continues to reoccur repeatedly.
Strangely, it’s referring to my old duckdns.org domain and not the one I have configured in my docker compose file for traefik. The existing nginx service is also stopped.
update: So I’m guessing this is because i already have a valid lets encrypt certificate pointing to the same IP even though it’s issued to another domain. Is there any way to fix this?
Any help would be very appreciated!