Hello everyone.
Perhaps this question has already been asked by someone, but I could not find it.
There was a problem with understanding the configuration of the traefik.yml file so that traefik could work with the namecheap provider.
Could someone share information on how to do this correctly?
Thanks in advance
Can you be more specific?
Your DNS provider must resolve the domain name to the IP of your Traefik server.
In general you don’t have to customize for you DNS provider. Check simple Traefik example.
It is only required when using LetsEncrypt dnsChallenge
, there you need to provide credentials via env vars (doc).
I have recently purchased a domain name in namecheap. And I am trying to use the API key from the provider to deploy traefik. I have an assumption that the settings in the traefik.yml file are not
correct.
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: /config.yml
certificatesResolvers:
namecheap:
acme:
email: SektorCT@gmail.com
storage: acme.json
dnsChallenge:
provider: namecheap
resolvers:
- "56.154.132.200"
- "56.154.133.200"
These are the only errors in the log that I see.
In the compose file for this provider I specified NAMECHEAP_API_KEY. But what else is needed for this key to be applied correctly I have not yet figured out.
I would be grateful if you could explain or maybe you have an example of working with this provider.
Thx a lot
As the messages say:
Namecheap is not responding with the expected JSON format message, either auth is wrong or it’s the old story that they have other requirements for API to be enabled.
And it seems the file /config.yml
is not found inside the Traefik container.