I’m hacking together a LuaJIT middleware for Caddy, in the vein of OpenResty[1]/lua-nginx-module[2] for nginx, built on Luar[3] and golua[4]. But I just noticed that official (listed) Caddy plugins can’t use cgo [5], so I figured I’d write to gauge interest and ask for others’ thoughts/feedback/ideas out of curiosity.
If others aren’t interested I’ll still develop it for myself, but if there is interest I might be willing to maintain a simple downstream Caddy fork (which, coincidentally, is also how OpenResty is maintained). I’m also (a little bit less) interested in making a middleware with a pure-Go Lua implementation (Shopify/go-lua[6] or gopher-lua[7]), and would be interested in others’ thoughts here as well.
[1] https://openresty.org/en/
[2] https://github.com/openresty/lua-nginx-module
[3] https://github.com/stevedonovan/luar
[4] https://github.com/aarzilli/golua
[5] https://github.com/mholt/caddy/wiki/Publishing-a-Plugin-to-the-Download-Page
[6] https://github.com/Shopify/go-lua
[7] https://github.com/yuin/gopher-lua
* Sorry for the non-links, apparently Discourse doesn’t let new users post more than 2 links/post.