A plugin that always answer the same status code without calling a service/server.
The response code can be configured.
The following declaration (given here in YAML) defines a plugin:
# Static configurationexperimental:plugins:noop:moduleName: github.com/traefik-contrib/noopversion: v0.1.0
Here is an example of a file provider dynamic configuration (given here in YAML), where the interesting part is the http.middlewares
section:
# Dynamic configurationhttp:routers:my-router:rule: host(`demo.localhost`)service: service-fooentryPoints:- webmiddlewares:- my-pluginservices:service-foo:loadBalancer:servers:- url: http://127.0.0.1:5000middlewares:my-plugin:plugin:noop:responseCode: 200