switching to the production version of letsencrypt and waiting longer for DNS propagation seems to fix the issue with letsencrypt certificate generation
BUT: the / or whoami.dataweeder.com routes are still only resolving to 404s also the dashboard is not viewable. Something must be wrong with the configuration of traefik - but so far I do not yet know what.
Your docker-compose file does not work for me. See it here (with modifications for Cloudflare).
However, I think the problem is not cloudflare specific, as the 404 is not SSL related. Something in the config must be off. Strangely, not even the dashboard is served.
Neither the whoami nor the traefik dashboard service result in anything besides 404:
Adding: - traefik.http.routers.mywhoami.rule=Host(whoami.$DOMAINNAME_CLOUD_SERVER) || Path(/whoami) will allow to resolve https://foo.bar/whoami. The https://whoami.foo.bar is still a 404 though.
Assuming that the DNS foo.bar resolves to 127.0.0.1 - what do I have to change to allow for the 2nd option to resolve nicely as well?
The first thing I can think of is that the env variables are not resolved, then Traefik does not have the right domains. But I thought I have seen those domains in the logs. Can you check again? Or just try to hardcode into the config?
As this is a dev setup in docker-compose: foo.bar resolves to 127.0.0.1 and whoami.foo.bar resolves to 127.0.0.1 however, traefik is not serving anything on 127.0.0.1/ besides a 404 even though it has the subdomain registered in its routes.