Hacker News new | ask | show | jobs
by vladsiv 796 days ago
I recently used embedded Lua within Nginx to alter requests on a reverse proxy using Lua scripting.

It's great that Lua can be seamlessly integrated wherever we need it, allowing for the extensions and implementation of custom logic. It's also popular in gaming and often used to develop different custom game mods.

1 comments

IIRC, Lua in Nginx is deprecated in favor of the NodeJS module. I see more and more Nginx extensions written in JS, for SAML authentication, HTTP ACME challenge, etc...
Do you mean njs? Or is there a really a NodeJS module?

https://nginx.org/en/docs/njs/

Yes, njs. My dumb mind expanded the "n" to "node".
It's maybe deprecated by the official Nginx support, but there are other projects and organizations that are offering Lua scripting with Nginx with all kinds of extensions and libraries.

See OpenResty website[0] and Github repo[1].

[0] - https://openresty.org/en/

[1] - https://github.com/openresty/