Skip to content

A Traefik custom plugin to redirect users based on a request's attribute

License

Notifications You must be signed in to change notification settings

esenac/traefik-custom-router

Repository files navigation

traefik-custom-router

A Traefik custom plugin to redirect users based on the Authorization header in the incoming request.

Reference: the official documentation for developing Traefik custom plugins.

Usage

Set in the Dynamic config file (traefik-config/dynamic-config.yml) the URLs on which you want to redirect an anonymous user (public config) and a logged one (public private).

Build

Execute

docker build --tag traefik-custom-router .  

to build the Docker image.

Run

Execute

docker run --rm -it -p 80:80 -p 8080:8080 --name traefik docker.io/library/traefik-custom-router

to see it in action.

Build status

Yaegi tests Cross compilatiob

About

A Traefik custom plugin to redirect users based on a request's attribute

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published