If you’ve ever tried to get the OpenResty Lua stack working with stock distro packages, you know the pain: compile LuaJIT, chase down each lua-resty-* module, wire up the paths, repeat on every server. The myguard repository packages the most-used OpenResty Lua modules as proper .deb files for libnginx-mod-http-lua (NGINX) and angie-module-http-lua (Angie). Install any of them with apt-get install once you’ve added the myguard repository. No compiling, no path archaeology.

One thing the official packages don’t give you: both NGINX and Angie (and their OpenSSL+QUIC library) are patched here to support yielding operations in ssl_session_fetch_by_lua* and ssl_certificate_by_lua*. That’s the bit you need for advanced TLS scripting, and the bit that’s quietly missing everywhere else.

A complete list of available .deb files is at lua-resty.

Core packages

  • luajit2: OpenResty’s LuaJIT fork, required by all Lua modules
  • lua-cjson: fast JSON encoding/decoding for Lua
  • lua-resty: meta-package that installs all modules listed below
  • lua-resty-core: FFI-based Lua API for ngx_http_lua_module and ngx_stream_lua_module

Networking and DNS

Authentication and security

Data storage and caching

Traffic control and utilities

String and system

Further reading