NginxProxyManager / docker-nginx-full

Docker image with compiled Nginx (OpenResty) and OpenSSL with all the stock Nginx plugins enabled.
72 stars 60 forks source link

Added both lua-resty-http lua plugin and Crowdsec-Openresty-Bouncer #7

Closed LePresidente closed 2 years ago

LePresidente commented 2 years ago

Added both lua-resty-http lua plugin and Crowdsec-Openresty-Bouncer

jc21 commented 2 years ago

Docker Image for build 1 is available on DockerHub as:

jc21 commented 2 years ago

Docker Image for build 2 is available on DockerHub as:

jc21 commented 2 years ago

This is failing because you also need to see the version env var in the Jenkinsfile

LePresidente commented 2 years ago

I think i got all the environment variables, not sure what i'm missing

jc21 commented 2 years ago

The build shows that the version is still not coming through to the install script, but I can't see why not. Very strange, I'm looking into it

jc21 commented 2 years ago

The CI build failure was due to some restrictive permissions for changes by users outside of this project, that has been fixed. It's getting the variable now, but still failing, see my latest comments on the files.

LePresidente commented 2 years ago

Thanks for the help trying to debug this, hopefully its sorted now

jc21 commented 2 years ago

Yep it's working, the failure is in an extended golang image. Go just released a new version and this is causing problems with some packages. I'll merge this anyway, the main images will push fine regardless.

jc21 commented 2 years ago

I had to disable this here as the v2.9.17 release of NginxProxyManager that used this change caused out of control memory leak. It was reported by some users and then when I used that image it froze my server after climbing past 3gb. The v2.9.17 docker tag is still available for debugging.

LePresidente commented 2 years ago

Ok i'll have a look and get back to you

LePresidente commented 2 years ago

So either my server doesn't have enough hosts configurator or activity to catch this. I've gone through the code and can't find anything obvious causing the issue.

Does the memory leak happen at startup or over time when accessing the server?

jc21 commented 2 years ago

At startup. After nginx reloads as part of startup it takes 20secs for my server to freeze. I haven't tested with a clean slate though

LePresidente commented 2 years ago

Ok I see the spike it does clear itself on my server but something is definitely wrong. Will revert back when i find the issue