lua-upstream-nginx-module icon indicating copy to clipboard operation
lua-upstream-nginx-module copied to clipboard

Nginx C module to expose Lua API to ngx_lua for Nginx upstreams

Results 29 lua-upstream-nginx-module issues
Sort by recently updated
recently updated
newest added

Hi, Yichun, As I need to access the headers of response and do some counting for the upstream server, how to get the upstream server address of the response in...

Thanks for your share. Can I get other config by this module,such as keepalive option along with servers ``` server 127.0.0.1:8011 weight=20 max_fails=0 fail_timeout=10s; server 127.0.0.1:8012 weight=20 max_fails=0 fail_timeout=10s; keepalive...

Hi agentzh, according to the doc, seems we cannot change the backend weight by lua api now? Maybe this is useful for better load balance

Tried compiling lua-upstream-nginx-module-0.05 and seems to fail on nginx 1.9.12 > nginx configure options (alternate ordering): > ./configure --with-ld-opt="-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" --with-cc-opt="-m64 -mtune=native -mfpmath=sse -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security...

Please refer to [Converting Static Modules to Dynamic Modules | NGINX](https://www.nginx.com/resources/wiki/extending/converting/#) for dynamic modules.

error LNK2019: unresolved external symbol _ngx_http_lua_get_request referenced in function _ngx_http_lua_upstream_get_upstream_main_conf error LNK2019: unresolved external symbol _ngx_http_lua_add_package_preload referenced in function _ngx_http_lua_upstream_init

Perhaps, this may be useful.. [lua-upstream-199.patch.zip](https://github.com/openresty/lua-upstream-nginx-module/files/79646/lua-upstream-199.patch.zip)

Hi agentzh. This adds ngx_http_lua_upstream_set_peer_addr() to change upstream ip:port for https://github.com/openresty/lua-upstream-nginx-module/issues/10. I would appreciate it if you could run tests and merge this feature with your branch. The syntax is...