Closed elico closed 7 months ago
Hey! The easiest way to load the CRS is the one described by Using OWASP Core Ruleset section of the Readme of this repo. Also, this repo comes with an out of the box example. Its CaddyFile is under example/CaddyFile, here you can see some back configuration overrides, custom rules etc.
If you wish to point to a local version of the CRS, It should be enough to customize the Include directives( E.g. Include @coraza.conf-recommended
) pointing to your files instead of relying on the aliases loaded thanks to load_owasp_crs
It took me a while and I managed to first install caddy as a reverse proxy. Then after this worked for a week I tried to add coraza to the picture. I eventually managed to build caddy with coraza support but now I am struggling to understand how to configure it with the CRS. I looked at: https://coraza.io/docs/tutorials/coreruleset/
and the files sits at:
/opt/src/coreruleset
ie:I have never used CRS or modsecurity so I will readlly appreciate any help. I will give an example caddy file which can be used to set the example up:
I will appreciate any help to understand how to do the most basic configuration, From there I assume it will be pretty simple since it's basic CRS configurations.
Thanks, Eliezer