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
- lua-resty-dns: non-blocking DNS resolver for the Lua NGINX module
- lua-resty-http: Lua HTTP client using cosocket API
- lua-resty-websocket: WebSocket support for ngx_lua
Authentication and security
- lua-resty-jwt: JWT validation and generation for ngx_lua
- lua-resty-hmac: HMAC functions for ngx_lua and LuaJIT
- lua-resty-openidc: OpenID Connect and OAuth 2.0 library for NGINX
- lua-resty-session: secure, flexible session management for OpenResty
Data storage and caching
- lua-resty-redis: non-blocking Redis client using cosocket API
- lua-resty-memcached: Lua memcached client driver
- lua-resty-memcached-shdict: memcached client with shared-dict caching layer
- lua-resty-mysql: non-blocking Lua MySQL driver
- lua-resty-lrucache: Lua-land LRU cache backed by LuaJIT FFI
Traffic control and utilities
- lua-resty-limit-traffic: rate limiting and traffic control library
- lua-resty-lock: non-blocking shared-memory lock API
- lua-resty-balancer: consistent-hashing and round-robin load balancing
- lua-resty-upstream-healthcheck: active upstream health checking in pure Lua
String and system
- lua-resty-string: string utilities and hash functions (MD5, SHA1, base64)
- lua-resty-upload: streaming file upload parser
- lua-resty-signal: send signals to UNIX processes from Lua
- lua-resty-shdict-simple: simplified shared-dict API
- lua-resty-shell: non-blocking shell command execution