News for hackers. Stuff that matters.
Re:Scriptable Operating Systems with Lua [pdf] by vladsiv on Sunday April 21, 2024 @05:13AM (#40104247)
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.

Re:Scriptable Operating Systems with Lua [pdf] by linkdd on Sunday April 21, 2024 @06:09AM (#40104471)
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...
Re:Scriptable Operating Systems with Lua [pdf] by vladsiv on Sunday April 21, 2024 @08:25AM (#40105167)
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/

Re:Scriptable Operating Systems with Lua [pdf] by vmsp on Sunday April 21, 2024 @07:13AM (#40104736)
Do you mean njs? Or is there a really a NodeJS module?

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

Re:Scriptable Operating Systems with Lua [pdf] by linkdd on Sunday April 21, 2024 @08:15AM (#40105085)
Yes, njs. My dumb mind expanded the "n" to "node".