Skip to content

moonlightwatch/MethodBlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Request Method Block

config example

# Static configuration

experimental:
  plugins:
    methodBlock:
        moduleName: github.com/moonlightwatch/MethodBlock
        version: v0.1.4
# Dynamic configuration

http:
  routers:
    my-router:
      rule: host(`demo.localhost`)
      service: service-foo
      entryPoints:
        - web
      middlewares:
        - my-plugin

  services:
   service-foo:
      loadBalancer:
        servers:
          - url: http:https://127.0.0.1:5000
  
  middlewares:
    my-plugin:
      plugin:
        methodBlock:
          Message: "Method Not Allowed"
          Methods:
            - GET
            - POST

About

Method block plugin for traefik.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages