crowdsecurity / cs-openresty-bouncer

CrowdSec bouncer for OpenResty
MIT License
11 stars 5 forks source link

Openresty infront of mailcow #48

Closed pittbull closed 7 months ago

pittbull commented 7 months ago

I am running a rig with a local api and a remote mailserver (based on mailcow)

I have crowdsec installed on the remote server and hooked up to my api with a firewall bouncer, but I would like to use captcha on the remote server. I have installed the docker version of crowdsecurity/openresty, but I am struggelig as to where and how implement this in the process.

Is it possible to run openresty infront of another nginx both in separate docker images?

//Thomas

LaurenceJJones commented 7 months ago

Yes you should be able to put this infront of a Nginx you would have to mount a custom default server configuration into openresty so all requests sent to the server are proxy pass to the other nginx.

pittbull commented 7 months ago

So in my own words: Traffic should hit openresty nginx, and then be proxy-passed to mailcow?

I am trying to wrap my head around this information (mailcow behind proxy), and this documentation on your docker image - but I am not able to understand where to do what.

Care to share some insight?

LaurenceJJones commented 7 months ago

So in my own words: Traffic should hit openresty nginx, and then be proxy-passed to mailcow?

I am trying to wrap my head around this information (mailcow behind proxy), and this documentation on your docker image - but I am not able to understand where to do what.

Care to share some insight?

Not to sound completely rude but we cant walk you through how to configure a reverse proxy as that is not our goal.

Maybe you can try joining our discord and the community over there might be able to help.

pittbull commented 7 months ago

Fair point.