https://github.com/Miromani4/traefik-plugin-AdminAPI_WebUI
Admin API
https://github.com/Miromani4/traefik-plugin-AdminAPI_WebUI
traefik traefik-plugin
Last synced: over 1 year ago
JSON representation
Admin API
- Host: GitHub
- URL: https://github.com/Miromani4/traefik-plugin-AdminAPI_WebUI
- Owner: Miromani4
- License: mit
- Created: 2024-02-11T15:15:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T07:21:34.000Z (over 2 years ago)
- Last Synced: 2024-06-21T15:24:51.327Z (about 2 years ago)
- Topics: traefik, traefik-plugin
- Language: Go
- Homepage:
- Size: 2.21 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AdminAPI_WebUI
add Admin API & Web UI for Traefik configured dynamic files!
This is a plugin for [Traefik](https://traefik.io) to add a **Admin API & Web UI for Traefik** as a middleware.
## Usage
### Configuration
Here is an example of a file provider dynamic configuration (given here in
YAML), where the interesting part is the `http.middlewares` section:
```yaml
# Dynamic configuration
http:
routers:
my-webui-router:
rule: host(`admin.localhost`)
service: noop@internal # required
middlewares:
- traefik_plugin_AdminAPI_WebUI
middlewares:
traefik_plugin_AdminAPI_WebUI:
plugin:
traefik_plugin_AdminAPI_WebUI:
root: "/tmp/"
```
#### `root`
The `root` parameter is the root directory of dynamic configuration files.
### Local test
There is a `docker-compose.yml` file to test the plugin locally:
```bash
docker-compose up -d
```
Then, you can go to [http://admin.localhost](http://admin.localhost) to see the
result.