A module for OpenResty displays all sorts of information about currently running installation of Nginx and Lua
$ luarocks install lua-resty-info
root