-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig
68 lines (58 loc) · 2.85 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# vim: filetype=sh
# If $NGX_IGNORE_RPATH is set to "YES", we will ignore explicit
# library path specification on resulting binary, allowing libcoraza.so
# to be relocated across configured library pathes (adjust /etc/ld.so.conf
# or set $LD_LIBRARY_PATH environment variable to manage them)
#
# $YAJL_LIB variable may need to be populated in case of non-standard
# path of libyajl.so's installation
ngx_addon_name="ngx_http_coraza_module"
coraza_dependency="ngx_http_postpone_filter_module \
ngx_http_ssi_filter_module \
ngx_http_charset_filter_module \
ngx_http_xslt_filter_module \
ngx_http_image_filter_module \
ngx_http_sub_filter_module \
ngx_http_addition_filter_module \
ngx_http_gunzip_filter_module \
ngx_http_userid_filter_module \
ngx_http_headers_filter_module \
ngx_http_copy_filter_module";
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP_FILTER
ngx_module_name="$ngx_addon_name"
ngx_module_srcs="$ngx_addon_dir/src/ngx_http_coraza_module.c \
$ngx_addon_dir/src/ngx_http_coraza_pre_access.c \
$ngx_addon_dir/src/ngx_http_coraza_header_filter.c \
$ngx_addon_dir/src/ngx_http_coraza_body_filter.c \
$ngx_addon_dir/src/ngx_http_coraza_log.c \
$ngx_addon_dir/src/ngx_http_coraza_rewrite.c \
$ngx_addon_dir/src/ngx_http_coraza_utils.c";
ngx_module_deps="$ngx_addon_dir/src/ddebug.h";
ngx_module_libs="-lcoraza"
ngx_module_incs="-L/usr/local/lib"
ngx_module_order="ngx_http_chunked_filter_module \
ngx_http_v2_filter_module \
ngx_http_range_header_filter_module \
ngx_http_gzip_filter_module \
$ngx_module_name \
$coraza_dependency";
. auto/module
else
CFLAGS="-I /usr/local/include $CFLAGS"
NGX_LD_OPT="-lcoraza $NGX_LD_OPT"
CORE_INCS="$CORE_INCS $ngx_feature_path"
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES ngx_http_coraza_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$ngx_addon_dir/src/ngx_http_coraza_module.c \
$ngx_addon_dir/src/ngx_http_coraza_pre_access.c \
$ngx_addon_dir/src/ngx_http_coraza_header_filter.c \
$ngx_addon_dir/src/ngx_http_coraza_body_filter.c \
$ngx_addon_dir/src/ngx_http_coraza_log.c \
$ngx_addon_dir/src/ngx_http_coraza_rewrite.c \
$ngx_addon_dir/src/ngx_http_coraza_utils.c";
NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
$ngx_addon_dir/src/ddebug.h \
$ngx_addon_dir/src/ngx_http_coraza_common.h";
fi