The NGINX-Lua support is quite mature. Besides the module and the API, there are a couple of third-party libraries that can be used for various purposes. The following is a list of a few of the available libraries:
lua-resty-mysql
(github.com/openresty/lua-resty-mysql): This library provides the Mysql
driver to Lualus-resty-redis
(github.com/openresty/lua-resty-redis): This library provides the Redis driver to Lualua-resty-memcached
(github.com/openresty/lua-resty-memcached): This library provides the memcached driver to Lualua-resty-string
(github.com/openresty/lua-resty-string): This library provides string utility methodslua-resty-websocket
(github.com/openresty/lua-resty-websocket): This library provides support for WebSockets in Lualua-resty-dns
(github.com/openresty/lua-resty-dns): This library provides the DNS resolver in Lualua-resty-upload
(github.com/openresty/lua-resty-upload): This library provides support for the upload of HTTP files in LuaIn order to use these libraries, include the respective scripts in the NGINX configuration file using the lua_package_path
directive. Then, import the package using Lua's require
statement:
lua_package_path "/home/ubuntu/lua-resty-mysql-master/lib/?.lua;;"; init_by_lua 'mysql = require "resty.mysql"';
3.141.4.179