A collection of tools to aid in nginx module development.
git clone [email protected]:kogosoftwarellc/nginx-dev-tools
export PATH="$PWD/nginx-dev-tools:$PATH"
ngx-add-source-to-project
ngx-configure
ngx-make-module
ngx-run-module
Configuration is stored in your project as a .ngxrc
shell file. The following
variables are supported:
NGX_VERSION
e.g.1.11.5
NGX_TEST_SRCS
e.g.test/fixtures/nginx.conf dist/module.so
ngx-configure
- Configures nginx source to compile the module.ngx-make-module
- Runsmake modules
in the nginx source with the module.ngx-run-module
- Copies files needed to run the module to /tmp and uses docker to run nginx inside a container with the provided files.ngx-add-source-to-project
- Assumes you have the following directories in your project:libs/
,include/
. Downloads nginx source code (specified by the--nginx-version
option). Source is placed underlibs/<nginx-version>
and header files are symlinked toinclude/
.