Using environment variables in traefik.toml

How do I read an environment variable inside traefik.toml rather than hard-coding it in the toml file? I tried digging through Docs and search on Google, but I was not successful in finding a solution.

1 Like

Hello,

The env vars are not interpreted in the traefik.toml.

If you want to do that I recommend to use CLI args instead of TOML.

https://docs.traefik.io/v1.7/basics/#arguments