add Admin API & Web UI for Traefik configured dynamic files!
This is a plugin for Traefik to add a Admin API & Web UI for Traefik as a middleware.
Here is an example of a file provider dynamic configuration (given here in
YAML), where the interesting part is the http.middlewares
section:
# Dynamic configurationhttp:routers:my-webui-router:rule: host(`admin.localhost`)service: noop@internal # requiredmiddlewares:- traefik_plugin_AdminAPI_WebUImiddlewares:traefik_plugin_AdminAPI_WebUI:plugin:traefik_plugin_AdminAPI_WebUI:root: "/tmp/"
root
The root
parameter is the root directory of dynamic configuration files.
There is a docker-compose.yml
file to test the plugin locally:
docker-compose up -d
Then, you can go to http://admin.localhost to see the result.