Self-signed certs (mkcert) with traefik + whoami in docker example - 502 Bad Gateway error

In the end, it was because the whoami container wasn't using the certs properly. Not sure if it was a bug with the container, but as soon as I used my certs with another application I wrote in go, everything was fixed.