This configuration contains modules to support healthchecks (http and stream) in opensource nginx version.
This module has several dependencies:
- lua-nginx-module
- ngx_devel_kit
- ngx_dynamic_upstream
- ngx_dynamic_upstream_lua
- ngx_dynamic_healthcheck
- stream-lua-nginx-module
- lua-cjson
- lua-resty-lock
- lua-resty-core
Build nginx with healthchecks. All dependencies are downloaded automaticaly.
Pre requirenments (for example centos/redhat)
sudo yum install gcc-c++.x86_64 zlib-devel openssl-devel
Build
git clone git@github.com:ZigzagAK/nginx-resty-auto-healthcheck-config.git
cd nginx-resty-auto-healthcheck-config
./build.sh
Archive will be placed in the install
folder after successful build.
UI displays upstream status.
Available on http://127.0.0.1:8181/status/http
for http upstreams and http://127.0.0.1:8181/status/stream
for stream upstreams.