https://github.com/3scale/apicast-nginx-module
https://github.com/3scale/apicast-nginx-module
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/3scale/apicast-nginx-module
- Owner: 3scale
- License: gpl-3.0
- Created: 2020-03-22T15:18:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-18T00:18:56.000Z (over 1 year ago)
- Last Synced: 2024-11-18T01:24:55.365Z (over 1 year ago)
- Language: Perl
- Size: 72.3 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```