mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #107] 有没有简化点的安装方式,比如安装包或docker包 #216
Labels
No labels
MacOS
Nginx
OpenResty
Tengine
bug
documentation
enhancement
needs-investigation
pull-request
question
stale
stale
stale
timeout
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ngx_waf#216
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @molixiaoge on GitHub (Sep 6, 2022).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/107
个人安装起来依赖库太多,配置也很复杂多样,比如我的安装过程如下:
系统: centos 7.5
1.通过 assets/guide.sh 发现只需要动态库,通过docker下载动态库,发现老是错误,后升级docker版本终于下载下来了。
2.然后 glibc版本过老,需要升级 gcc make 版本,网上搜了一大堆资料折腾了大半天,终于安装升级好。
3.后来要用ModSecurity ,需要自己编译,编译的又是少依赖和路径什么的。
4.折腾了好半天,好在最后终于运行了,但是配置什么的还是有点乱中间过程也做了很多事情。
能不能根据环境内容提供一些预编译包呢,就像 ngx_http_waf_module.so的提供方式一样,一般使用来看 只需ngx_http_waf_module.so 和modesecurity的动态库,可以根据主流操作系统提供使用包的方式么?
@stale[bot] commented on GitHub (Sep 13, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。
@ADD-SP commented on GitHub (Sep 16, 2022):
一直想这么干,比如提供一个
.deb包之类的,只是不知道怎么制作这类东西,所以就拖着了。@molixiaoge commented on GitHub (Sep 19, 2022):
好的,感谢回复
@stale[bot] commented on GitHub (Sep 26, 2022):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
此 issue 因为最近没有任何活动已经被标记,如果在此之后的一段时间内仍没有任何活动则会被关闭。感谢您对项目的支持。
@freshgeek commented on GitHub (Apr 21, 2025):
最近也是在加这个,有点费劲,一直加不进docker 官方模块,官方推荐方式,https://github.com/nginx/docker-nginx/blob/master/modules/README.md
mkdir -p modules/ngx_wa
wget -O Dockerfile https://raw.githubusercontent.com/nginx/docker-nginx/refs/heads/master/modules/Dockerfile
echo 'https://github.com/ADD-SP/ngx_waf/archive/refs/tags/v6.1.10.tar.gz' >modules/ngx_waf/source
echo 'flex bison' >modules/ngx_waf/build-deps
docker build --build-arg ENABLED_MODULES="ngx_waf" -t third-nginx .
@molixiaoge 是否可以分享下你的方式
@ADD-SP commented on GitHub (Apr 21, 2025):
本项目依赖蛮多的,具体是遇到了什么问题? @freshgeek
@freshgeek commented on GitHub (Apr 21, 2025):
出现报错了,上面步骤也有点问题,重新调了下,缺了 deb 依赖:
最新的步骤:
@freshgeek commented on GitHub (Apr 21, 2025):
官方文档是拿这个举例,https://github.com/FRiCKLE/ngx_cache_purge 感觉可以参考这个git项目,创建对应的deb包