I am currently struggling to get a simple demo setup working, as I have not used docker and Traefik’s docker-label-based workflow in quite some time.
I have a simple vagrant setup that creates a Nginx container as well as a Traefik container, both as Podman quadlets. This is working fine, but only for HTTP.
Now, to get something using the self-signed default certificate that Traefik brings, which settings would need to be adjusted?
Adding --entrypoints.https.address=":443" and exposing this port is enough to get a nice and friendly warning in the browser, due to the self-signed TLS certificate.
But after accepting the warning I only get a 404 warning (404 page not found) and it seems the request never actually reaches the Nginx container.
The Traefik dashboard does not show anything unusal, only green routers, services and middlewares.
What additional settings would I need to make to get this working?
Or do I need to provide my own self-signed certificate to get Traefik working?
Not sure why this should be necessary, as it already works properly using HTTP. So the general connectivity is given, i.e. Traefik knows where to find the Nginx server.
It is only HTTPS that is not working.
This is the access log. Not sure what to read out of it, but to me it looks like Traefik causing the 404 (if I understand the IPs correctly).
It seems that the 404 comes from downstream `"DownstreamStatus": 404,`, the question is why only via HTTPS. Normally Traefik is happily doing the TLS part for other services that are only talking HTTP.
For the record, I relearned my lesson. For the docker label-based approach, one has to define two routers, one for HTTP and one for HTTPS. The first one gets the “redirect HTTP to HTTPS” middleware, the second gets the tls=true.