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_VERSIONe.g.1.11.5NGX_TEST_SRCSe.g.test/fixtures/nginx.conf dist/module.so
ngx-configure- Configures nginx source to compile the module.ngx-make-module- Runsmake modulesin 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-versionoption). Source is placed underlibs/<nginx-version>and header files are symlinked toinclude/.