-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add custom location for proxy host --> server goes offline #3512
Comments
Yep, same problem! |
same, this app is just broken |
Ran into this problem as well and looks like its related to this issue (link is to the solution). |
This solution works fine for me ;) |
Not working for me. Hoping a permanent fix is incoming? |
|
since the latest update I have the same issue with custom locations. It brings the site offline. |
I am running Nginx Proxy Manager 2.11.1 in a Debian 12 LXC Container in Proxmox 8.1.4 via the Proxmox Helper Scripts. This is what fixed the issue for me.
I was initially a little stupid and deleted the line from If you are running NPM in a Docker Container or on some other kind of system, you will just need to find the correct file (I am not sure if the file/folder structure is different when you deploy in Docker or TrueNAS or what have you). |
I have the same problem with "custom location". |
Same problem here with any custom locations |
Same here with custom location |
Also same problem |
Have you guys tried the workaround in #3512 (comment)? It seems to be working for a lot of people. |
The workaround not working for me 🙂 |
What are you using it on? Docker? Something else? Maybe someone with a similar setup might be able to help. I read on a different post about this same issue that someone deployed a specific pull request and that worked for their docker setup. |
I'm using docker. |
You could try using something like winscp and then editing the file with whatever program you have on your system like notepad++ or sublime text. That's how I ended up doing it. I don't trust myself to not screw things up in the console 😅 |
Please helping me. How can I connect with winscp into a docker Container? |
Sorry, as I mentioned in my original comment I'm using a Proxmox LXC, so I can't really give you much advice here. I'm a beginner myself. That said, it might not be THAT different from Proxmox. All I had to do was to enter my Proxmox LXC container's IP address in winscp, and use root as the username and my root password, and it connected. Then I just ran a file search for that _locations file. If you're running docker on a Linux machine or something of the sort, this might work for you. If this doesn't, you might need to look this up. |
@AkshayRao27 so workaruond not possible |
Someone else with a docker setup managed to get it working - maybe try it this way or then ask them if they could help? #3536 (comment) |
I can confirm this is NOT solving the issue |
I tried a little to investigate this issue a little. This made the application gone offline, but after I applied @AkshayRao27 's solution it worked!
Note that I couldn't make the regexes to work before I applied the solution. |
Hi, i forgot to mention: i am using NPM dockerized version.
where You can not get in with ssh or scp because there is no ssh server running in that container, you may install it, but it is nonsense. |
For those attempting to modify your number.conf, keep in mind that there may not be a text editor installed already for those using a docker or podman container. I was able to edit that conf file by moving it into the /data dir within the container which is mounted to wherever you mounted that to on the host OS. The following commands helped me, even though ultimately, editing that conf file did not resolve my issue. If you are using docker, replace my podman with docker and you may or may not need sudo, and replace NPM with the name of your Nginx Proxy Manager container. |
I'm hitting this issue too, and the file edits don't help. |
That fixed for me on a Docker-Container. Hope for a fast Fix .. |
How do you restart the service after updating the file? if you restart the container wouldn't the changes get lost since it is not a volume? |
Copy out the directories where the service keeps its config files, after that mount them in container as a volume. |
changed my docker compose to use this and this fixed the problem. |
Thank you so much, this worked for me. |
Thank you! Spent hours trying to fix this and your solution worked for me. I am using Docker on Windows and like @fearandesire, my file was |
I did some research and found that you can automate removing that line with the sed command, and since this container is using the s6-overlay, you can provide additional commands to run with the docker-compose command YML entry. However, this command needs to run forever, otherwise s6 will see that is has stopped and restart the container services. command: bash -c "sed -i '/{% include \"_hsts_map.conf\" %}/d' /app/templates/_location.conf; while true; do sleep 86400; done" This doesn't really consume any more CPU since it is sleeping for 86400 seconds, but it does block the command from exiting. |
This was PERFECT for me. I am running it as LXC on Proxmox 8.1 too. An immediate fix. Thank you for the help! |
This fixes the issue for me. Thank you a lot |
Work for me too, thanks !!! |
hi @leonardosantoslopes. |
Hi @hans-holgersson, I'm using the latest docker version from @jc21. ==> By the way, thanks @jc21 for such project. URL: https://hub.docker.com/r/jc21/nginx-proxy-manager Hereunder a screenshot of the current installed version: Regards, |
myeah ... my version is 2.11.1 10x |
My current setup is a fresh install from latest docker image. |
so i did it. `nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /data/nginx/proxy_host/13.conf:19
|
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug
Hello,
I create a new entry:
add custom location
after klicking to save
Nginx Proxy Manager Version
2.11.1
Operating System
Ubuntu 22.04.3 LTS
The text was updated successfully, but these errors were encountered: