Skip to content

sdeploy/discover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service Discover for nginx by lua, based sdeploy/nginx

Install nginx by lua

export LUAJIT_LIB=/usr/local/lib
export LUAJIT_INC=/usr/local/include/luajit-2.0/

./configure --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --add-module=/tmp/lua-nginx-module-master --add-module=/tmp/ngx-devel-kit --with-cc-opt='-I/tmp/openssl/1.0.2h_1/include' --with-ld-opt='-L/tmp/1.0.2h_1/lib'

Make for test

curl -L 'http://t.cn/RJLkM3A' | sh
sd i nginx
sd i nginx 2
sd i discover
sd i discover 2
echo 'listen	81;' > /opt/nginx2/conf/_nginx.conf.replace
echo 'listen	81;' > /opt/nginx2/apps/app.conf.replace
echo 'shell.export DISCOVER_HOSTS=127.0.0.1:9081	shell.export DISCOVER_HOSTS=127.0.0.1:9080' > /opt/nginx2/apps/discover.conf.replace
echo 'listen	9081;' > /opt/nginx2/apps/discover.conf.replace

About

Service Discover for nginx by lua, based sdeploy/nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors