From 8bc4c2a96e568951836a32ab4637f89f4962aea6 Mon Sep 17 00:00:00 2001 From: potatso Date: Fri, 7 Jul 2023 14:59:34 +0800 Subject: [PATCH] update readme --- README.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 05b6c88..7cca325 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,32 @@ Lua implementation of the [libcoraza](https://github.com/corazawaf/libcoraza) for modsecurity Web Application Firewall. -## Installation +## dependence -```bash -luarocks install lua-resty-t1k +### 1. libcoraza-nginx +1. clone the repository +`git clone https://github.com/potats0/coraza.git` + +2. Build the source && Installation ``` +cd coraza +./build.sh +./configure +make +sudo make install +``` +`libcoraza.so` will be installed at `/usr/local/lib` + +### 2. Coreruleset +coreruleset is an opensource waf rules. +1. clone the repository +`git clone https://github.com/coreruleset/coreruleset` + +### 3. lua-resty-coraza +```bash +opm get potats0/lua-resty-coraza +``` + ## Synopsis