Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

4 watching

Forks

Repository files navigation

apicast-nginx-module

Custom Nginx module that adds a few options to be able to run some special operations on top of Openresty.

Build

Create docker image

docker build -t 3scale/apicast-nginx-module .

Run

docker run --rm -v .:/opt -it 3scale/apicast-nginx-module bash

This module needs some updates on nginx code, all of them appended on patches/

make download
make patch
make compile

Download lua-resty-openssl

make openssl

Install lua module

make install

Examples:

test/mtls.conf: Example of upstream MTLs where the certs can be set on init/access phase.

cd /opt/test
openresty -c /opt/test/mtls.conf

Run with valgrind

valgrind --tool=memcheck --leak-check=full --keep-debuginfo=yes --show-possibly-lost=no --gen-suppressions=all --suppressions=valgrind.suppress openresty -c /opt/test/mtls.conf

Testing:

Run test

prove

Run test with valgrind

TEST_NGINX_USE_VALGRIND=1 prove

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages