PascalMinder / geoblock

Traefik middleware plugin - Deny requests based on country of origin
98 stars 10 forks source link

Error: middleware \"my-GeoBlock@file\" does not exist" #42

Closed navilg closed 7 months ago

navilg commented 10 months ago

When I setup GeoBlock, It fails with below error.

time="2023-09-02T14:16:10Z" level=error msg="middleware \"my-GeoBlock@file\" does not exist" routerName=webprofile@docker entryPointName=websecure

Traefik version: v2.10.4

Static Config (CLI):

--experimental.plugins.GeoBlock.moduleName=github.com/PascalMinder/geoblock 
--experimental.plugins.GeoBlock.version=v0.2.6

Dynamic configuration:

http:
  middlewares:
    my-GeoBlock:
      plugin:
        GeoBlock:
          allowLocalRequests: true
          logLocalRequests: false
          logAllowedRequests: false
          logApiRequests: false
          api: "https://get.geojs.io/v1/ip/country/{ip}"
          apiTimeoutMs: 500
          cacheSize: 25
          forceMonthlyUpdate: true
          allowUnknownCountries: false
          unknownCountryApiResponse: "nil"
          countries:
            - CH

Label used in webprofile service:

traefik.http.routers.webprofile.middlewares=my-GeoBlock@file

Please help

PascalMinder commented 8 months ago

Do you still encounter the problem?

akha666 commented 6 months ago

Same issue with Traefik 2.10.7 middleware \"my-GeoBlock@file\" does not exist"