Closed JojoBr0 closed 1 year ago
Since ubuntu has dropped support for libnginx-mod-http-lua
package we cannot compile for this. From the ubuntu changelogs
Remove the Lua modules from NGINX (Server Team Decision) - future support
for Lua module now requires resty-core from OpenResty, meaning that if
we want to continue to support the Lua module, we have to start becoming
OpenResty - users should just use OpenResty at this point for Lua.
Changes made for this removal:
+ d/control:
+ Remove lua module from dependencies, and binary build item.
+ Add "Breaks" line for nginx-lua for older versions of NGINX.
This is added to the nginx metapackage and nginx-extras.
+ d/rules: Remove Lua module from the build flags for -extras.
+ d/http-lua, d/modules/{,patches/,watch/}nginx-lua: Remove Lua
modules, watch file, module patches.
+ d/modules/control: Remove Lua module from definitions
+ d/copyright: Remove lua module.
+ d/tests/{control,lua/}: Remove Lua test entirely, remove
dependencies on any test which request
libnginx-mod-http-lua as it's gone.
They are just advising you to install openresty moving forward
Edit: Just wanted to make it clearer that this decision is out of our hands, we cannot push any distro to maintain packages they dont want too. To which if you havent used openresty, I highly suggest you give it a try, its basically an extended version of nginx with lua support from the get go.
Closing due to out of our hands, but will pin for visibility.
Sorry to re-open this closed issue.
The solution to this issue is ppa/odrej repositories.
The steps below work on Ubuntu 22.04:
sudo add-apt-repository ppa:ondrej/nginx
sudo apt install nginx lua5.1 libnginx-mod-http-lua luarocks gettext-base lua-cjson
sudo apt install crowdsec-nginx-bouncer
Maybe you can update the page https://docs.crowdsec.net/u/bouncers/nginx
Best regards, Luiz Vaz
Describe the bug
There is no available package for ubuntu 22 LTS from the official repositories.
Also if you want to install it manually, there is no candidate for the required libnginx-mod-http-lua package.