This blog is perfectly explaining things :
https://mariobuonomo.dev/blog/traefik-ssl-self-signed-development-mode
Once Traefik is configured with SSL, the provided configuration files are a basic configuration to have WP, nexcloud and their databases working.