Help with Nginx Proxy

I’m not great with this routing stuff.

I have HA running on a server and Blue Iris on a separate server on my network. I’m following this guide in order to have my Blue Iris cams show in HA as an iframe. I think I’m following the guide perfectly, but it’s not working.

I setup a separate DuckDNS domain, we will just call it I added that to the DuckDNS config in HA:

  accept_terms: true
  certfile: fullchain.pem
  keyfile: privkey.pem
  algo: secp384r1
token: **********************
aliases: []
seconds: 300

Then restarted the add-on to generate the certs:

[23:33:37] INFO: Renew certificate for domains: and aliases: 
# INFO: Using main config file /data/workdir/config
Processing with alternative names:
 + Creating new directory /data/letsencrypt/ ...
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 2 authorizations URLs from the CA
 + Handling authorization for
 + Handling authorization for
 + 2 pending challenge(s)
 + Deploying challenge tokens...
OKOK + Responding to challenge for authorization...
 + Challenge is valid!
 + Responding to challenge for authorization...
 + Challenge is valid!
 + Cleaning challenge tokens...
OKOK + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + Done!

I have NGINX Proxy Manager installed and have both certificates in there and proxys

If I go to everything works and I am redirected to my Blue Iris login. But, if I go to httpS:// I’m redirected to the Home Assistant login page. I need the HTTPS part to work in order to use the iframe.

Any ideas how to fix this?

Here’s an update that may help.

Up to this point I’ve had these ports forwarded in my router. My HA is

If I change that top port forwarding rule to forward incoming port 443 to port 443 like this

I can then access my Blue Iris server by going to but now I get a 502 Bad Gateway error when going to

Does that help solve this?