Home Assistant Remote Access using NGINX

Описание к видео Home Assistant Remote Access using NGINX

Thank you for watching. In this video we will take you through setting up remote access using NGINX. We are using DuckDNS for this but you can use any dynamic DNS service.

DuckDNS - duckdns.org

Code to be added to configuration.yaml (NGINX):

http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24

To fix issues with addons using their own web server, such as ESPHome, create a file called nginx_proxy_default_fix_ingress.conf and paste the following in:

location /api {
proxy_connect_timeout 60;
proxy_read_timeout 60;
proxy_send_timeout 60;
proxy_intercept_errors off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host:8126;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://homeassistant.local.hass.io:81...
}

Code to be added to configuration.yaml (ip ban, optional):

ip_ban_enabled: true # use this to enable auto IP ban
login_attempts_threshold: 3

Please like and subscribe, and click on the notification bell so you can be alerted to new videos. Please also consider being a patron at Patreon (link below).

If you would like us to create videos on a particular topic, technology or product, please leave a comment below.

When browsing to your Home Assistant instance, this is usually - homeassistant.local:8123. If this does not work, try homeassistant:8123. If all else fails, check your router's device listing for the IP address. Once you have an SSL certificate set up, remember to use https: in front of the URL.

Chapter links:
0:00 - Intro
0:45 - DuckDNS - Create Domain
1:32 - Install & Configure DuckDNS addon
2:74 - Router Port Forwarding
3:12 - Install & Configure NGINX Proxy addon
4:26 - Home Assistant Configuration
5:23 - Extra steps for addon compatibility
6:52 - Testing
7:43 - IP Ban (optional)

The below is optional but this will help us to purchase kit for review, and to keep up with channel expenses (studio equipment, etc). We may earn a commission if you purchase something through these links.

Amazon link (as an Amazon associate we earn from qualifying purchases) - [https://amzn.to/3fj2S8a](https://amzn.to/3fj2S8a)
Ko-Fi - [https://ko-fi.com/smarthomeaddict](https://ko-fi.com/smarthomeaddict)
Buymeacoffee - [https://www.buymeacoffee.com/smarthom...](https://www.buymeacoffee.com/smarthom...)
Patreon - [  / smarthomeaddict  ](  / smarthomeaddict  )

Finally, please visit our website at [https://smarthomeaddict.co.uk](https://smarthomeaddict.co.uk/)

BTC: bc1qdhnyctwr455vwskhjwl04dm9hucjq55yxyy9cu
BCH: qr4jur8nuf7cjmctwjheyfsq39l93lesgvgz7snj3k
ETH: 0xBB6601Be92F27D688F3a47e952866Cb68d1E2170
DOGE: D5ZBGuoJQmqMkdJjjosw4JsYgp95b1CL56

Комментарии

Информация по комментариям в разработке