mirror of
https://github.com/ADD-SP/ngx_waf.git
synced 2026-04-26 22:15:55 +03:00
[GH-ISSUE #48] 模块预构建版本 #30
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#30
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 @soulteary on GitHub (Jun 15, 2021).
Original GitHub issue: https://github.com/ADD-SP/ngx_waf/issues/48
@ADD-SP 你好👋,我看到有用户反馈编译构建失败,所以做了一个简单的,基于官方容器环境和构建参数的预构建版本(目前只有ubuntu/alpine)
后续或许可以将 scratch 中的二进制模块添加到项目的 release 中,以及添加更多不同的版本预构建文件、以及支持更多的系统/平台。
https://github.com/nginx-with-docker/ngx_http_waf_module
希望对项目有帮助。
@ADD-SP commented on GitHub (Jun 15, 2021):
@soulteary 十分感谢您的努力!
我之前就有提供各个 os/arch 的预构建模块的想法,因为交叉编译比较麻烦所以一直没弄。感觉使用 QEMU + Docker 完成交叉编译的工作可行,之后我会尝试通过提 PR 来完善您的项目。
顺便一提,
libsodium并不总是静态链接的,所以目前您构建的模块应该是不能用的,除系统中存在libsodium的动态库。这个问题我也会在后续提的 PR 中修复。链接模式是如何选择的可以看一下下面的代码片段。github.com/ADD-SP/ngx_waf@5655af6e13/config (L128-L133)@ADD-SP commented on GitHub (Jun 15, 2021):
如果有什么想法可以在这里讨论一下。我目前希望可以通过 Github Action 自动完成构建和发布。