Use GeoBlock to blacklist/whitelist countries

This commit is contained in:
Imran Remtulla
2025-11-15 04:30:17 -05:00
parent a4faca0eef
commit a6d8fa808c
2 changed files with 23 additions and 3 deletions

View File

@@ -3,4 +3,22 @@ http:
crowdsec-bouncer:
forwardauth:
address: http://crowdsec-bouncer:8080/api/v1/forwardAuth
trustForwardHeader: true
trustForwardHeader: true
geoblock:
plugin:
geoblock:
silentStartUp: false
allowLocalRequests: true
logLocalRequests: false
logAllowedRequests: true
logApiRequests: true
api: "https://get.geojs.io/v1/ip/country/{ip}"
apiTimeoutMs: 750
cacheSize: 15
forceMonthlyUpdate: true
allowUnknownCountries: false
unknownCountryApiResponse: "nil"
blackListMode: false
countries:
- CA
- TZ