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
How to reverse proxy with NGINX Proxy Manager? #239
Comments
You should change |
from #/getting-started/networking
Tried exactly this. Did not work.
|
I had some issues getting it to work with NGINX Proxy because we have other stuff on the network forwarding to 8080. What I had to do was set a Port in the docker-compose file. ports: (Just an example. Can be any port not being used) I set NEKO_ROOMS_NAT01=(My public ip) I then setup my router firewall to open the port I just used and assigned it to the local ip of the neko-room host. Then in Nginx Proxy I set it up like in the photos below: Not sure if this will work for you but it's what got it working for me. |
Check if you have properly forwarded ports using troubleshooting guide. Also when specifying |
Going through troubleshooting guide
Was successful Running
That's when I set But again, when I change I'll try doing exactly what you did with |
Hey I use Nginx reverse proxy manager too and here's what I've found. I believe if you set neko_nat to your local IP then your friend won't be able to connect but you will be able to. If you set it to public IP, you won't be able to connect on the local network but your friend will be able to. The solution here is to leave neko_nat alone so its set to your public IP. Turn on nat hairpinning on your router, then connect to your public ip with port on your web browser. That should work. So for you it would be public ip:8080. Try it in a different browser too, it could be a cache issue (that isn't resolved in a private browsing window). I normally use Firefox but I tried it in Chrome and it worked fine in Chrome but didn't work in Firefox. |
Ok so I managed to make it work (currently tested with one UDP port). I didn't think to try it 'cause every app I've hosted has never needed all ports be exposed to the world. On my router, I had to expose the Basically all that I changed: In my compose, I manually set my public IP & used the aws service. Both worked.
In my router settings, I exposed both the default And in NGX-PM, I couldn't use the But I don't know how safe it is to keep it like this as I've always heard it's best not to do that. |
You can forward You could use turn servers (either custom deployed in DMZ or bought as a service) to get rid of the ports. Connection from proxy -> neko service can use local IP addresses. Only |
Done. I've made the changes you've mentioned & left it at that. Currently working & trust it's safe enough. If it ever becomes a worry I'll try to look into the |
Weirdly enough, it works when accessing on my local network through the domain. But when I gave it to a friend to join it came up with 'peer connecting failed'.
I had only port 80 & 443 forwarded to NGXPM to handle reverse proxying.
logs at the time:
The text was updated successfully, but these errors were encountered: