Extend Traefikβs functionality with a built-in Administrative API and Web UI for managing dynamic configuration files.
This plugin integrates into Traefik as a middleware component, providing an intuitive web interface and REST API to administer dynamic configurations loaded via the file provider.
traefik.yml FileTo ensure proper plugin operation, configure the file provider to monitor the directory containing your dynamic configuration files:
providers:providersThrottleDuration: 20sdocker:endpoint: "unix:///var/run/docker.sock"exposedByDefault: falsefile:directory: /tmp/ # Path to your dynamic configuration fileswatch: true # Automatically track file changesexperimental:plugins:traefik_plugin_AdminAPI_WebUI: # Plugin namemoduleName: "github.com/Miromani4/traefik-plugin-AdminAPI_WebUI"version: "v1.3.0" # Use the latest version
In your dynamic configuration file (YAML), define the middleware and attach it to a dedicated router:
http:routers:admin-ui-router:rule: "Host(`admin.localhost`)"service: noop@internal # Required placeholder servicemiddlewares:- traefik_plugin_AdminAPI_WebUItls:{} # Optional: enable TLS if neededmiddlewares:traefik_plugin_AdminAPI_WebUI:plugin:traefik_plugin_AdminAPI_WebUI:root: "/tmp/" # Path to configuration directory
root ParameterSpecifies the root directory where Traefik monitors dynamic configuration files (.yml or .yaml). All operations via the web interface are sandboxed within this directory to enforce security and prevent unauthorized filesystem access.
A docker-compose.yml file is provided in the repository for quick local deployment and validation:
docker-compose up -d
Once successfully launched, access the web interface at:
π http://admin.localhost
root parameter.This plugin is ideal for DevOps and platform engineering teams seeking to automate and simplify microservices infrastructure management through a unified, self-service interface.


Ctrl + / β Toggle comment/uncomment for selected line(s)
π¬ Have questions or feature requests?
Please open an issue on GitHub β we welcome your feedback and contributions!