There are open-source validation tools for this available. So you can validate traefik config files before you deploy them.
https://github.com/otto-de/traefik-config-validator (written in Go and also available as docker image)
https://github.com/aminiun/traefik-validator (written in Python)