Everytime I enable the api/dashboard, everything stops working

It takes some time to get used to Traefik static and dynamic config.

providers.file is only need for additional dynamic config files, not for traefik.yml. You use additional dynamic config files not shown?

Maybe compare to simple Traefik example.