-
-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[INSTALLATION] Nginx Proxy Manager #542
Comments
For sake of completness after adding manually in 1.conf the following and rebooting the container
this is what i receive
as well as
altough i'm wondering whether this is a messy approach |
I'm looking to integrate the two as well, and it appears (according to NPM's website) that you could just add the include to Since in NPM it loads that file just before, eg
and then it would only be included once? Edit: Hmm... No. It needs to be in a server block, and it doesn't look like there's a way to add it early in the server block using the include files of NPM, only at the end Would be curious if you found a better way to integrate it though. |
Have you tried this?
I honestly don't know whether it is better to have it at the top or at the bottom. The way i did was simply to add from the npm web ui in the proxy host advanced tab these two after running the install script
of course this will be valid only for the specific proxy and not widely available to every created proxy. |
I have no idea if this is helpful/useful, but here is what I did. I built a docker container for this repo that runs git pull updates every 12 hours, which links to a persistent directory. I then feed those directories into my proxy docker. I provided the included paths to the bots.d files I'm using and symlinked the conf.d files. This allows me to use the conf.d files, not the test files. This method will allow me to keep my own white list and blacklists and not have those over written.
files/nginx/conf#
website.conf
bots banging on it minutes after I restarted the services, deny.conf works nicely.
|
I'm getting s6 overlay error when using
the error is
and even by removing "ro" i get
|
You're mounting files to your conf.d. Do you have a resolver.config in your files directory? I
|
No i don't, normally npm adds it automatically as 127.0.0.11 in the file. Shall i create it? |
yes, you'll have to create the directory and the resolver in that dir. permission should be the same. like this? |
Yeah but then also for letsencrypt-acme-challenge.conf file would be the same |
Alright, I think I worked out a way to set it up correctly :D On my docker host that has nginxproxymanager installed with docker-compose, I made a folder to hold everything, say /root/loadbalancer I made a new directory called botblocker under this, and a conf.d and a bots.d Then I got the installer from the repo with
And setup my docker-compose.yml like this
And then in my data/nginx/custom/server_proxy.conf I added
And it all seems to work as intended :D Might have to restart the container when doing a rule update with the ultimate-bad-block updater scripts, but think I finally solved it for me... Hopefully this will help anyone else - Thanks to everyone else in the thread posting their ideas which helped me find mine, much appreciated! :> Edit: Oh, and yeah you have to comment out #server_names_hash_bucket_size 256; in botblocker-nginx-settings.conf since it's already defined somewhere else in nginxproxymanager. |
Did you look through existing ISSUES ?
Yes, Nginx Proxy Manager docker is not mentioned
Describe the problem you are experiencing
I would like to setup an nginx proxy manager docker + nginx bad bot blocker
The current folder layout (not decided by me) is as follow:
and the wiki is saying one can also use the following
The download went fine
and i was expecting to launch the setup on /data/nginx/proxy_host/1.conf which is my proxy conf
./setup-ngxblocker -v /data/nginx/proxy_host/ -e conf
but this is what i get
so other than my current value for server_names_hash_bucket_size which is 1024 i would have expected this
to be mentioned for /data/nginx/proxy_host/1.conf but that's not the case.
This is the nginx.conf
which apparently already contains include /etc/nginx/conf.d/*.conf;
The text was updated successfully, but these errors were encountered: