PascalMinder / geoblock

Traefik middleware plugin - Deny requests based on country of origin
105 stars 9 forks source link

404 error #47

Closed ingus16 closed 10 months ago

ingus16 commented 10 months ago

Hi, Any suggestions what could be wrong if I turn plugin on its shows 404 not found When turn off all works as should be

[http.middlewares]
[http.middlewares.my-GeoBlock]
[http.middlewares.my-GeoBlock.plugin]
[http.middlewares.my-GeoBlock.plugin.GeoBlock]
allowLocalRequests = "false"
allowUnknownCountries = "false"
api = "https://get.geojs.io/v1/ip/country/{ip}"
apiTimeoutMs = "150"
cacheSize = "15"
countries = "GB"
blackListMode: "false"
addCountryHeader: "false"
forceMonthlyUpdate = "true"
logAllowedRequests = "true"
logApiRequests = "true"
logLocalRequests = "true"
unknownCountryApiResponse = "nil"
allowedIPAddresses = "192.168.0.0/24"
[experimental.plugins.GeoBlock]
  moduleName = "github.com/PascalMinder/GeoBlock"
  version = "v0.2.7"
PascalMinder commented 10 months ago

What files are those you pasted into the issues? Where are they saved? What are the names of the files?

ingus16 commented 10 months ago

Never mind, spent two days to figure it out. Not working regardless of what I do. No error and not working or my-GeoBlock@file not exist error. Decided to go via Cloudflare as less hassle