Skip to content

imiljkovic/echo-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo Plugin

Echo Plugin is a middleware for Traefik that shortcuts the response and echoes basic request params in JSON response (path, IPAddress)

Configuration

Static

[pilot]
    token="xxx"

[experimental.plugins.echo]
    modulename = "github.com/traefik/plugin-echo"
    version = "v0.1.0"

Dynamic

To configure the Echo plugin you should create a middleware in your dynamic configuration as explained here. The following example illustates the usage of echo middleware plugin on specific path (/echo).

[http.routers]
  [http.routers.my-router]
    rule = "Path(`/echo`)"
    middlewares = ["echo"]
    service = "my-service"

[http.middlewares]
  [http.middlewares.echo.plugin]
    include-host = true
[http.services]
  [http.services.my-service]
    [http.services.my-service.loadBalancer]

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors