crowdsecurity / cs-nginx-bouncer

CrowdSec bouncer for Nginx
MIT License
48 stars 8 forks source link

CentOS/Almalinux 8 support #45

Open imorandinwnp opened 1 year ago

imorandinwnp commented 1 year ago

Hi,

It would be great the installation script would work with AL8. At least there is a list of dependencies to install?

Thanks,

Ignacio

LaurenceJJones commented 1 year ago

There a list of dependencies shown inside the docs?

https://docs.crowdsec.net/docs/next/bouncers/nginx#dependencies

Yeah granted it shows apt but they are the ones needed on other systems

r-tokarski commented 1 week ago

The installation script is also written with Debian/Ubuntu in mind, it checks for dependencies based on dpkg package, which is obviously not used on Red Hat-based distributions. libnginx-mod-http-lua is not available in the CentOS Stream repositories, possibly in the other ones too. I guess we can use OpenResty package which includes http-lua, but there should be an info about it.

As a workaround it would be fine if there was an instruction to install it manually from this git repo.

LaurenceJJones commented 1 week ago

libnginx-mod-http-lua is not available in the CentOS Stream repositories, possibly in the other ones too. I guess we can use OpenResty package which includes http-lua, but there should be an info about it.

Then you wouldn't use cs-nginx-bouncer you would use cs-openresty-bouncer (however, im sure it still written with debian in mind since it mostly a copy and paste job by original authors) instead.

As a workaround it would be fine if there was an instruction to install it manually from this git repo.

If libnginx-mod-http-lua is not available then no amount of instructions on the git repo would help as we depend on it.

Edit: Seems I was wrong the install script does check which package manager to use but probably not 100% tested.