NGINX Addon Configuration

Hey there,

I’m using the HASS.IO NGINX addon in combination with the DuckDNS addon and it works good. I can access via my DuckDNS url and access with local ip / hostname. Now I like to configurate NGINX to only allow access to specific ip’s. Especially Google IP range to use Google Assistant. Is this possible with the HASS.IO addon?

Thanks in advance
sti0

Hi…how did you get NGINX and DUCKDNS addons working is there any instructions?

This is what I have so far but does not work:

I want to be able to type http://domain.duckdns.org or https://domain.duckdns.org into my browser and it redirects to https://domain.duckdns.org for secure traffic from HASSIO all the way to my browser.

I have HASS.IO running on a Ubuntu server for example with internal IP 192.168.1.50. HASSIO is running on default 8123 port.

I have DUCKDNS Addon working which automatically has SSL via Lets Encrypt.

I have installed NGINX Addon and added the following to the options area:

{
  "domain": "domain.duckdns.org",
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

I have no port forwarding in my router but I have tried to forward port 80 to 192.168.1.50 which is the IP of the Ubuntu Server where HASSIO is running but that does not work either.

I have not errors in the NGINX log

starting version 3.2.2
[INFO] Run nginx

My browser seems to translate http:// to https:// but does not connect to dashboard?

Wish to know this too

With local IP you use http and /or https?

Which nginx are you using?

I use the standard settings for NGINX addon and DUCKDNS which are mentioned in the docs. Also I forward the port 8123 on my router.

I access hassio with https://domain.duckdns.org:8123 (external) OR http://hassio:8123 (local network).

Please consider this part of the DUCKDNS docs:
You’ll need to forward the port you listed in your configuration (8123 in the example above) on your router to your Home Assistant system.”

Thanks, not quite the same as I need. From the internet for example on my mobile, I want to enter http://domain1.duckdns.org which resolves to my router due to duckdns as I have dynamic IP from my ISP. I want this to then redirect to https://domain1.duckdns.org which then should resolve to HASSIO ip 192.168.1.50 on my internal network.

You guys use https:// to start where I want http://

I need to know if I have to setup non addon version of ngnix and non addon versions of duckdns or lets encrypt or if the above can be achieved with HASSIO Addons. If manual setup I need step by step instructions to help.

Sorry but I can’t help you this way. I only use the hassio addons. But why can’t you just type in https://…just one letter more?!

Alternative you can make a shortcut in your browser or use the easiest way: web apps

HI, i’m looking also for additional configurations for the NGINX addon in Hass.io - did you find a solution?

No, unfortunately not :frowning: