mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Update ModSecurity-nginx patch files
This commit is contained in:
parent
1d3d56c7e5
commit
1abe933a90
4 changed files with 19 additions and 26 deletions
|
|
@ -25,7 +25,7 @@
|
|||
"name": "ModSecurity-nginx v1.0.3",
|
||||
"url": "https://github.com/SpiderLabs/ModSecurity-nginx.git",
|
||||
"commit": "d59e4ad121df702751940fd66bcc0b3ecb51a079",
|
||||
"post_install": "patch --forward src/deps/src/modsecurity-nginx/src/ngx_http_modsecurity_log.c src/deps/misc/modsecurity-nginx.patch && patch --forward src/deps/src/modsecurity-nginx/config src/deps/misc/config.patch && patch --forward src/deps/src/modsecurity-nginx/src/ngx_http_modsecurity_common.h src/deps/misc/ngx_http_modsecurity_common.h.patch && patch --forward src/deps/src/modsecurity-nginx/src/ngx_http_modsecurity_module.c src/deps/misc/ngx_http_modsecurity_module.c.patch && patch --forward src/deps/src/modsecurity-nginx/config src/deps/misc/modsecurity-nginx-config.patch"
|
||||
"post_install": "patch --forward src/deps/src/modsecurity-nginx/src/ngx_http_modsecurity_log.c src/deps/misc/modsecurity-nginx.patch && patch --forward src/deps/src/modsecurity-nginx/src/ngx_http_modsecurity_common.h src/deps/misc/ngx_http_modsecurity_common.h.patch && patch --forward src/deps/src/modsecurity-nginx/src/ngx_http_modsecurity_module.c src/deps/misc/ngx_http_modsecurity_module.c.patch && patch --forward src/deps/src/modsecurity-nginx/config src/deps/misc/modsecurity-nginx-config.patch"
|
||||
},
|
||||
{
|
||||
"id": "nginx",
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
@@ -110,7 +110,7 @@
|
||||
ngx_module_type=HTTP_FILTER
|
||||
ngx_module_name="$ngx_addon_name"
|
||||
ngx_module_srcs="$ngx_addon_dir/src/ngx_http_modsecurity_module.c \
|
||||
- $ngx_addon_dir/src/ngx_http_modsecurity_pre_access.c \
|
||||
+ $ngx_addon_dir/src/ngx_http_modsecurity_access.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_header_filter.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_body_filter.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_log.c \
|
||||
@@ -141,7 +141,7 @@
|
||||
NGX_ADDON_SRCS="\
|
||||
$NGX_ADDON_SRCS \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_module.c \
|
||||
- $ngx_addon_dir/src/ngx_http_modsecurity_pre_access.c \
|
||||
+ $ngx_addon_dir/src/ngx_http_modsecurity_access.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_header_filter.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_body_filter.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_log.c \
|
||||
|
|
@ -1,8 +1,19 @@
|
|||
@@ -126,6 +126,7 @@
|
||||
ngx_http_v2_filter_module \
|
||||
ngx_http_range_header_filter_module \
|
||||
@@ -14,3 +14,3 @@
|
||||
ngx_feature_libs="-lmodsecurity"
|
||||
-ngx_feature_test='printf("hello");'
|
||||
+ngx_feature_test='msc_init();'
|
||||
ngx_modsecurity_opt_I=
|
||||
@@ -112,3 +112,3 @@
|
||||
ngx_module_srcs="$ngx_addon_dir/src/ngx_http_modsecurity_module.c \
|
||||
- $ngx_addon_dir/src/ngx_http_modsecurity_pre_access.c \
|
||||
+ $ngx_addon_dir/src/ngx_http_modsecurity_access.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_header_filter.c \
|
||||
@@ -128,2 +128,3 @@
|
||||
ngx_http_gzip_filter_module \
|
||||
+ ngx_http_brotli_filter_module \
|
||||
$ngx_module_name \
|
||||
$modsecurity_dependency";
|
||||
|
||||
@@ -143,3 +144,3 @@
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_module.c \
|
||||
- $ngx_addon_dir/src/ngx_http_modsecurity_pre_access.c \
|
||||
+ $ngx_addon_dir/src/ngx_http_modsecurity_access.c \
|
||||
$ngx_addon_dir/src/ngx_http_modsecurity_header_filter.c \
|
||||
|
|
|
|||
4
src/deps/src/modsecurity-nginx/config
vendored
4
src/deps/src/modsecurity-nginx/config
vendored
|
|
@ -12,7 +12,7 @@ ngx_feature_name=
|
|||
ngx_feature_run=no
|
||||
ngx_feature_incs="#include <modsecurity/modsecurity.h>"
|
||||
ngx_feature_libs="-lmodsecurity"
|
||||
ngx_feature_test='printf("hello");'
|
||||
ngx_feature_test='msc_init();'
|
||||
ngx_modsecurity_opt_I=
|
||||
ngx_modsecurity_opt_L=
|
||||
|
||||
|
|
@ -190,4 +190,4 @@ if [ "$ngx_module_link" != DYNAMIC ] ; then
|
|||
exit 1
|
||||
fi
|
||||
HTTP_FILTER_MODULES="${modules}"
|
||||
fi
|
||||
fi
|
||||
Loading…
Reference in a new issue