This is a build of nginx which supports lua and modesecurity plugin. It is intended to be used as a reverse proxy with caching and WAF capabilities behind a load balancer (it is currently built without SSL support).
Features:
- luajit 2.1 from openresty is bundled with the build
- ngx_http_redis module - caching responses in Redis
- headers-more-nginx-module - for setting headers
- ModSecurity - waf capabilities
Running ./build.sh will output a new RPM file in the rpms/ directory.
Running ./debug.sh will build the container and start bash session inside it.
You can then run rpmbuild -bb /root/rpmbuild/SPECS/nginx.spec to build the RPM file.
When RPM file is built, we upload it to github releases (for history) and to our internal public storage.
- would be nice to create a repository for the RPMs
- it is not possible to use COPR, as the build requires absolute path to
LUAJIT_LIBandLUAJIT_INCwhich is not possible to set in COPR because of permissions issues.
grm release surfly/nginx-rpm -f rpms/<rpm-file> -t <version>
# Example:
# grm release surfly/nginx-rpm -f rpms/nginx-lua-waf-1.25.3-3.fc39.x86_64.rpm -t 1.25.3-3