Skip to content

Commit 87115e7

Browse files
author
Felipe Zimmerle
committed
Adds a default config script to nginx
1 parent 537b85e commit 87115e7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

nginx/modsecurity/config

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/sh
2+
3+
# This file should be auto-generated whenever modsecurity is configured as standalone.
4+
5+
CFLAGS="$CFLAGS \
6+
-I/usr/include/apr-1.0 \
7+
-I/usr/include/apr-1.0 -I/usr/include \
8+
-I/usr/include/apache2 \
9+
-I/usr/include/libxml2 \
10+
-DWITH_LUA -I/usr/include/lua5.1 \
11+
-DWITH_PCRE_STUDY -DMODSEC_PCRE_MATCH_LIMIT=1500 -DMODSEC_PCRE_MATCH_LIMIT_RECURSION=1500 -DREQUEST_EARLY \
12+
"
13+
14+
15+
CORE_LIBS="$CORE_LIBS \
16+
-L/usr/lib -lapr-1 \
17+
-L/usr/lib -laprutil-1 \
18+
-I/usr/include/apache2 \
19+
-L/usr/lib/x86_64-linux-gnu -lcurl \
20+
-lxml2 \
21+
-llua5.1 \
22+
-lpcre \
23+
-L/usr/lib -lcap"
24+
25+
ngx_addon_name=ngx_http_modsecurity
26+
27+
CORE_MODULES="$CORE_MODULES ngx_pool_context_module"
28+
29+
HTTP_AUX_FILTER_MODULES="ngx_http_modsecurity $HTTP_AUX_FILTER_MODULES"
30+
31+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
32+
$ngx_addon_dir/ngx_http_modsecurity.c \
33+
$ngx_addon_dir/apr_bucket_nginx.c \
34+
$ngx_addon_dir/ngx_pool_context.c"
35+
36+
NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
37+
$ngx_addon_dir/apr_bucket_nginx.h \
38+
$ngx_addon_dir/ngx_pool_context.h"
39+
40+
CORE_LIBS="$ngx_addon_dir/../../standalone/.libs/standalone.a $CORE_LIBS"
41+
42+
CORE_INCS="$CORE_INCS \
43+
$ngx_addon_dir \
44+
$ngx_addon_dir/../../standalone \
45+
$ngx_addon_dir/../../apache2"
46+

0 commit comments

Comments
 (0)