I have a custom certificate for domainA.tld and *.domainA.tld. But I have another certificates by letsencrypt for domainB.tld, domainC.tld.
Here is the relevant section of my traefik.toml:
[entryPoints]
[entryPoints.http]
address = ":80"
compress = true
[entryPoints.https]
address = ":443"
compress = true
[entryPoints.https.tls]
minVersion = "VersionTLS12"
[[entryPoints.https.tls.certificates]]
certFile = "/etc/traefik/certs/domainA.tld.crt"
keyFile = "/etc/traefik/certs/domainA.tld.key"
[entryPoints.http.redirect]
entryPoint = "https"
regex = "^http://(www.)?domainA.tld(.*)"
replacement = "https://domainA.tld$2"
However, I would like to host a new domain, like domainD.tld. But when I try to open it, it forwards to https, that I do not want. I would like to use it via http.
Here is the relevant section of docker-compose.yml:
labels:
- "traefik.enable=true"
- "traefik.backend=${COMPOSE_PROJECT_NAME}_nginx_2"
- "traefik.frontend.rule=Host:domainD.tld"
- "traefik.port=80"
- "traefik.docker.network=traefik_proxy"
- "traefik.frontend.entryPoints=http"
- "traefik.frontend.passHostHeader=true"
I don't know, how I can solve this. How can I adjust traefik config to not forward domainD.tld to https?