Fork from traefik-umami-plugin
To add this plugin to traefik reference this repository as a plugin in the static config. The version references a git tag.
experimental:
plugins:
traefik-tianji-plugin:
moduleName: "github.com/msgbyte/traefik-tianji-plugin"
version: "v1.0.0" [experimental.plugins.traefik-tianji-plugin]
moduleName = "github.com/msgbyte/traefik-tianji-plugin"
version = "v1.0.0"With the plugin installed, you can configure a middleware in a dynamic configuration such as a config.yml or docker labels.
Inside traefik-tianji-plugin the plugin can be configured.
Only tianjiHost and websiteId options are required to get started.
The middleware can then be used in a router. Remember to reference the correct provider namespace.
http:
middlewares:
my-tianji-middleware:
plugin:
traefik-tianji-plugin:
tianjiHost: "https://app-tianji.msgbyte.com"
websiteId: "<your-website-id>"[http.middlewares]
[http.middlewares.tianji.plugin.traefik-tianji-plugin]
tianjiHost = "https://app-tianji.msgbyte.com"
websiteId = "<your-website-id>"