Assistance with NGINX and multiple instances of HA over Proxmox

Hi all,

As background, i have a fully configured instance of Hassio running on an RPi, which sometimes slows down due to RPi resources. I have recently purchased a NUC, installed Proxmox and setup Hassio using the single line command by whiskerz007 (worked out great). I then took a backup of my current (working) HA and restored it to the new virtual env.

Eventually i would like to host a second instance from the proxmox nuc as a dev instance, but that will come later.

My issue is, after updating NGINX and DuckDNS entries, i still cannot work out how to get to my dashboard using the standard https://my_instance_on_vm.duckdns.org. I am still able to get to my original (and still working) instance on https://my_instance_on_rpi.duckdns.org. I think it is just a matter of port forwarding, but because i am already forwarding 80 and 443 to my original instance, what do i have to do to either allow for a secondary instance on my router, or updating the vm instance from 80 and 443 to 80008 and 444 (or something like that?
Further, i can get to the new instance using my internal address of http://10.0.1.20:8123/.

Any help would be greatly appreciated.

On your internal network you can use a DNS alias

vm.duckdns.org:8123 >>> 10.0.1.20

I use nxfilter or pihole, Decent gateways would also have it built in too

Duck dns only points to your external IP address. It won’t point to a specific port.

If you want to run two instances simultaneously, for the second, you will need to setup a separate port mapping on a different port: maybe external port 8443 connected to proxmox instance port 8443. But if you’re doing it this way, you don’t need nginx- just change the port that HA runs on (must be > 1024).

Then in your client or browser, go to myduckdnsname:port. Eg. https://myproxinstance.duckdns.org:8443.

Why do you have to have external access to your dev instance? I have similar setup here and only my production system is externally accessible. I can use ZeroTier One or even a VPN into my network to access the other instances…

This should be fairly straightforward on nginx, I do something similar for external access to multiple vms…

Generate 2 duckdns urls, let’s say ha_number1.duckdns.org and ha_number2…

Run your nginx in a separate vm on your proxmox, if you want super easy to use then use the nginx proxy manager docker container (which is what one of the hassio addons uses)

Forward ports 80 and 443 from your router to your nginx vm

In nginx -

Forward requests for ha_number1 to your production vm`s ip at port 8123

Forward requests for ha_number2 to your dev vm’s ip at port 8123

Sorted

2 Likes