Nginx + Mruby. Features and use cases
summary
Embeds mruby into nginx to load SSL certs dynamically from Redis at the TLS handshake using nginx mruby ssl_handshake and serves responses from mruby content handlers; compiles and caches mruby scripts so they run once and persist until reload. Implements Redis-backed certificate storage with a filesystem fallback for resilience, uses a shared user_data cache for connections, and requires mruby_init_worker to avoid cross-worker locking. Runs in production ~18 months with success but exposes Redis outage and locking pitfalls.
AI-written summary · about
chapters (6)
- 0:00Introduction and speaker intro
- 1:12What is mruby and basics
- 9:23mruby projects and examples
- 14:15mruby in production use case
- 23:21Implementation and production issues
- 26:00Q&A and summary








