corazawaf / coraza-caddy

OWASP Coraza middleware for Caddy. It provides Web Application Firewall capabilities
https://www.coraza.io/
Apache License 2.0
283 stars 35 forks source link

How to install coraza plugins? #160

Open ericchaves opened 5 days ago

ericchaves commented 5 days ago

Hi, I would like to use the coraza-geoip plugin but could not figure out a way to install plugins in coraza-caddy. Is there a way of doing it using xcaddy?

Thanks in advance.

jcchavezs commented 3 days ago

Yeah, this deserves a good readme. Also on plugins we probably need a consumable that registers everything on init. Most likely you need to create an own package yourself that either loads the file from local or embeds it as described in https://github.com/corazawaf/coraza-geoip?tab=readme-ov-file#using-an-embedded-database-file-if-local-file-access-is-not-available-eg-webassembly