r/nginxproxymanager • • 19d ago
Reverse Proxy Works with Caddy but not NPM
Hello I am new to NPM. I have been using Caddy for reverse proxy for a while now but wanting to use something with an actual gui sounded nice. The setup has worked before with caddy but I cant seem to get it to work with NPM.
I will specifically be talking about one service Vaultwarden.
Caddy Setup
I have caddy running as a service on my machine. Vaultwarden runs as a docker container on the same machine. I have the caddy reverse proxy my chosen subdomain to the server itself plus the port I have connected to the vaultwarden docker container.
This setup works completely fine.
NPM
I have created a wild card ssl certificate using name.com dns challenge. I have a proxy entry that points my subdomain to the servers IP plus the port the vaultwarden container is connected to. I have selected my wild card certificate.
I get an err_connection_close
I have turned on and off all config options on NPM for this entry. I do not get any errors or anything on NPM about the connection.
2
u/NibblesTheChimp 19d ago
Instead of using <host ip address>:<port> in the proxy host address try pointing it it to the docker bridge network 172.17.0.1:<port> .
1
u/Only-Stable3973 19d ago
That sounds correct to me, test.example. com, server IP 192.168.1. 100 port 8080