How to properly secure Traefik with an SSL certificate behind a domain name?

Basic Traefik with LetsEncrypt and dashboard on port 443 example: link. Instead of port 8080 just use a different domain name.

To use own certificates, just check the docs and add them to your dynamic config (via labels or provider.file), then enable TLS on entrypoint or on container with label traefik.http.routers.mydashboard.tls=true.