4 ms·
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 w
by vladsiv 2y 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.
- linkdd 2y agoIIRC, 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...
- vmsp 2y agoDo you mean njs? Or is there a really a NodeJS module? https://nginx.org/en/docs/njs/ https://nginx.org/en/docs/njs/
- linkdd 2y agoYes, njs. My dumb mind expanded the "n" to "node".
- vladsiv 2y agoIt'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/ https://openresty.org/en/ [1] - https://github.com/openresty/ https://github.com/openresty/