This is a drop in replacement for jlesage/nginx-proxy-manager
This fork includes the OpenResty Crowdsec Bouncer
Please see the crowdsec_support branch for the changes as
Nginx Proxy Manager (NPM) allows adding proxy hosts through a password-protected multi-user WebUI. Add free Let's Encrypt SSL certificates to secure your web services. They are renewed by NPM automatically.
Default login:
admin@example.com
Password:
changeme
When creating SSL, using the button "Use a DNS challenge" does not work for lot of them due to CertBot not being in last version inside the fork.
WebSite: https://nginxproxymanager.com/
Live Demo: NONE
DockerHub: https://hub.docker.com/r/lepresidente/nginx-proxy-manager
GitHub: https://github.com/LePresidente/docker-nginx-proxy-manager
MyRepository: https://github.com/ItJustFox/unraidtemplate/
80
& 443
on your box.80
= 8080
& 443
= 4443
in TCP/mnt/user/appdata/NginxProxyManager-CrowdSec/crowdsec/crowdsec-openresty-bouncer.conf
cscli bouncers add NginxBouncer
)/config/crowdsec/templates/ban.html
/config/crowdsec/templates/captcha.html
cscli collections install crowdsecurity/nginx-proxy-manager
/mnt/user/appdata/crowdsec
---
before the ligne “filenames :”)filenames:
- /var/log/nginx/*.log
#this is not a syslog log, indicate which kind of logs it is
labels:
type: nginx-proxy-manager
to check if you crowdsec work fine go to an url that you created and you can run inside of crowdsec consolecscli bouncers list
you should see that type is "crowdsec-openrestry-bouncer"!
You can even connect your Crowdsec into an dashbord to see the automatic ban being apply.
Making Nginx use your Database will need you to re create SSL key and every host.
In case of error from nginx saying your Database is unreachable while you know it does be reachable, force-update him in Docker tab of Unraid, it will fix your issue.
If the issue is still here after. Please restart you server.
/mnt/user/appdata/NginxProxyManager-CrowdSec/
/mnt/user/appdata/NginxProxyManager-CrowdSec/production.json
{
"database": {
"engine": "mysql",
"host": "[YOURIP]",
"name": "[YOUR_DB_NAME]",
"user": "[YOUR_USERNAME]",
"password": "[YOUR_USER_PASSWORD]",
"port": 3306
}
}
To edit the basic page ban / captcha go to mnt/user/appdata/NginxProxyManager-CrowdSec/crowdsec/templates
then here you can edit the ban.html
/ captcha.html