https://github.com/tommoulard/traefik-plugin-waeb
A web server for Traefik
https://github.com/tommoulard/traefik-plugin-waeb
traefik traefik-plugin web-server
Last synced: about 1 year ago
JSON representation
A web server for Traefik
- Host: GitHub
- URL: https://github.com/tommoulard/traefik-plugin-waeb
- Owner: tomMoulard
- License: mit
- Created: 2023-05-22T08:12:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T09:48:47.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T23:41:38.453Z (over 1 year ago)
- Topics: traefik, traefik-plugin, web-server
- Language: Go
- Homepage: https://plugins.traefik.io/plugins/646b2816a8eb44f98ba6a325/waeb
- Size: 96.7 KB
- Stars: 26
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Waeb
[](https://github.com/tomMoulard/traefik-plugin-waeb/actions/workflows/main.yml)
Make Traefik a web server !
This is a plugin for [Traefik](https://traefik.io) to build a **web server** as a middleware.
> Not the plugin we deserved, but the plugin we needed.
>
> ~ [@mpl](https://github.com/mpl) ([src](https://twitter.com/lejatorn/status/1661750793232617477))
> Just because you can, doesn't mean you should
>
> ~ [@dtomcej](https://github.com/dtomcej) ([src](https://twitter.com/daniel_tomcej/status/1661746210485723136))
## 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-waeb-router:
rule: host(`waeb.localhost`)
service: noop@internal # required
middlewares:
- traefik-plugin-waeb
middlewares:
traefik-plugin-waeb:
plugin:
traefik-plugin-waeb:
root: "/var/www/html/"
```
#### `root`
The `root` parameter is the root directory of the web server.
### 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://waeb.localhost](http://waeb.localhost) to see the
result.