-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
if you are proxying your dns in cloudflare, traefik cannot generate certificates using http challenge using lets encrypt
Also when using a wildcard domain rule, you can only do so with a wildcard certificate in traefik, which means DNS challenge or own wildcard certificate. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Something clicked when I read [this discussion](#2057 (comment)), and I was able to solve the issue. What I did
http:
routers:
domain-test-gig5tv-router-18:
rule: HostRegexp(`^([a-z0-9-]+)\.domain\.com$`)
service: domain-test-gig5tv-service-18
entryPoints:
- web
- websecure
tls:
options: {}
services:
domain-test-gig5tv-service-18:
loadBalancer:
servers:
- url: http://domain-test-gig5tv:8000
passHostHeader: true
Note This config change will override all subdomains and redirect them to this application. HostRegexp(`^(?!test|admin|domain-api)([a-z0-9-]+)\.domain\.com$`) |
Beta Was this translation helpful? Give feedback.





Something clicked when I read [this discussion](#2057 (comment)), and I was able to solve the issue.
What I did
applicationinstead ofcompose, since applications allow overriding Traefik config./dashboard/traefikand overrode the Traefik config with the following: