Best video ever. For a few months I couldn't get it to work but you provided in depth details on what to do. You are amazing my friend! You just saved the rest of my hair from being pulled out.
After i created the nginx_proxy_default_fix_ingress.conf file i still cant open for example Studio Code Server and in ESPhome cant open wireless logs. Any ideas why ? ( FIXED - It seems that i no longer need the .conf file i removed it and restarted nginx addon )
Hi, until now I used my HomeAssistant by creating my domain duckdns and opening port 8123. In this way I was able to connect remotely without problems, Since this configuration completely blocked me from accessing the local ip, I tried to follow this clear video guide also using nginx but it only connects locally and not with my domain duckdns. It must be said that I had to change the port from 443 to another (I also made several tests with 4433 for example) but in this way it always gives me error 400: Bad Request. I had to change the port because on the 443 I already have apache2 for nextcloud running on another raspberry.
I do make reference to using other ports in the video. The problem with specifying an exact number for a port is that you could be using something already on that port, so had I said (for instance) use 9443, there's a chance somebody may have already had this on either their Home Assistant instance or another service. I will however try to make this clearer in future videos.
@@SmartHomeAddict I figured you didn't specify it due to problems. Thank you At this point, even having tried more ports, it could be a problem related to the modem (FritzBox).
This works however I ran into a problem, Alexa Media Players hacs integration doesn't seem to work when trying to pull a sound file through with nginx enabled. It works fine with the standrad Duckdns install. Any ideas?
Hi. I used this approach but my aws alexa integration stopped working as the endpoint /api/alexa/smart_home is now controlled by nginx and I always get the error ERR_SSL_UNRECOGNIZED_NAME_ALERT . Any help with this please?
Hiya, just wondering if your website is still up? I'm using an existing nginx box and using this method I found that there's a bit of a lag. I can access esphome fine just a tad slow. just wondering what I might need to look into. any guidance be much appreciated.
Recently this stopped working for me and could not figure out why. Turns out my ISP had forgotten to send me an opt out on the CGNAT IP addresses. Called them up and asked them to assign me a static IP. This fixed the issue. I can now connect from my Phone. Hope this helps others
I think this must be my issue: everything is working locally, however when I try to connect remotely using the HA Android app, I get an error: "ERR_CONNECTION_REFUSED" I'll call up the ISP to get a dedicated IP and hope that solves it
You could be, it depends on other factors too. You're allowing traffic over an unencrypted port, so anybody could in theory see what you're sending and receiving, for instance if you're on a wifi network you don't control. It's useful to have something handling SSL traffic, and this method is probably one of the safest.
Hmm I broke my HA. I was using DuckDNS with LetsEncrpt and exposing port 8123 by forwarding 443>8123. Then I followed this vid and changed the port forward 443-8123, just exposing native 443, and now I cannot access it via the external address, only internal, due to a 502 bad gateway error (browser) and just an access error on the app.
@@kmtsvetanovI did, but not through any helpful way. I gave up trying. I waited a month or so, and then I re-installed the add-on and re-configured using the same values and now it works. Nothing was evident from the logs.
A written guide along with code samples can be found here - smarthomeaddict.co.uk/2022/10/home-assistant-remote-access-using-nginx/
hi! ESPHome doesn't work out of the network but just within the LAN. I've filled the file in share folder but nothing... Any help?
Best video ever. For a few months I couldn't get it to work but you provided in depth details on what to do. You are amazing my friend! You just saved the rest of my hair from being pulled out.
Great, thanks 👍 got working with my duel router setup, took a while though. Straight to the point, no babbling, everyone else should take note 👍👍
Thanks, this was super helpful! Once I understood that the internal port to forward to is 443, everything started working great using this add-on.
Excellent video. Thank you!
You are the best!!! Watched other videos but that didn't work for me! Thank you so much!!!!!
Your tutorials are great! Thank you so much!! 🙏🏽
Thank you, I'm glad you liked them!
@@SmartHomeAddict wow, my replies are being deleted for some reason! 🙀
Very good video. Cleary and Short!
After i created the nginx_proxy_default_fix_ingress.conf file i still cant open for example Studio Code Server and in ESPhome cant open wireless logs. Any ideas why ?
( FIXED - It seems that i no longer need the .conf file i removed it and restarted nginx addon )
Thanks for this! When he said the .conf, he means the nginx_proxy_default_fix_ingress.conf file from the step in the video. Thanks again!
Super helpfull! All clear and liked the pace of explanations. Cheeers!
Great video with very clear instructions. Well done and thank you !!!!
Great video very clear. Thank youm
i cannot find home assistant url settings in system>network
did you found a solution?
you need to enable advanced mode in your user settings
Hi, until now I used my HomeAssistant by creating my domain duckdns and opening port 8123. In this way I was able to connect remotely without problems, Since this configuration completely blocked me from accessing the local ip, I tried to follow this clear video guide also using nginx but it only connects locally and not with my domain duckdns. It must be said that I had to change the port from 443 to another (I also made several tests with 4433 for example) but in this way it always gives me error 400: Bad Request.
I had to change the port because on the 443 I already have apache2 for nextcloud running on another raspberry.
I do make reference to using other ports in the video. The problem with specifying an exact number for a port is that you could be using something already on that port, so had I said (for instance) use 9443, there's a chance somebody may have already had this on either their Home Assistant instance or another service. I will however try to make this clearer in future videos.
@@SmartHomeAddict I figured you didn't specify it due to problems.
Thank you
At this point, even having tried more ports, it could be a problem related to the modem (FritzBox).
Very nice video, Thx
Greate video! Thanks! Good Look!
This works however I ran into a problem, Alexa Media Players hacs integration doesn't seem to work when trying to pull a sound file through with nginx enabled. It works fine with the standrad Duckdns install.
Any ideas?
Works perfectly.
Hi. I used this approach but my aws alexa integration stopped working as the endpoint /api/alexa/smart_home is now controlled by nginx and I always get the error ERR_SSL_UNRECOGNIZED_NAME_ALERT . Any help with this please?
Many thanks!!
Great help, Thanks
At the test part my duckdns domain takes me to my Linksys router login page.
Hiya, just wondering if your website is still up? I'm using an existing nginx box and using this method I found that there's a bit of a lag. I can access esphome fine just a tad slow. just wondering what I might need to look into. any guidance be much appreciated.
thanks
the conf file in the description is truncated on line :13
say what? is that bad?
@@ELGee1 Yes... The video shows that it ends in 8123/api, not with dots
Hi, i have followed the video managed to connect with duckdns domain but it still showing connection not secure.. any help ?
thank you
help i installed virtualbox image version on windows. could not get it work eventhough i tried all your steps
Do I still need to use duckdns if I have a fixed static IP ?
Recently this stopped working for me and could not figure out why. Turns out my ISP had forgotten to send me an opt out on the CGNAT IP addresses. Called them up and asked them to assign me a static IP. This fixed the issue. I can now connect from my Phone.
Hope this helps others
I think this must be my issue: everything is working locally, however when I try to connect remotely using the HA Android app, I get an error: "ERR_CONNECTION_REFUSED" I'll call up the ISP to get a dedicated IP and hope that solves it
will i be able to incorporate google and alexa speakers with this?
I am using Alexa Media Player and a Custom Alexa skill to bring my HA devices to Alexa - so yes :)
hello i did all the steps, i opened the port 443 on my router but it seems that it dosent work
I'm missing the share folder. Any comments regarding that?
Thank you
So, does this mean I could get rid of nabu casa? 🤔
Yes you can, at least for remote access. I'll be doing another video soon about what to do about Alexa and Google Assistant.
Hi buddy, After doing this, my Mqtt not working. Can you please to advise what steps I may have done wrong. Thanks a lot. 🙏
Oh shoot. I’ve been using duckdns by itself for the past 6 months or so. Am I playing with fire ? 😅
You could be, it depends on other factors too. You're allowing traffic over an unencrypted port, so anybody could in theory see what you're sending and receiving, for instance if you're on a wifi network you don't control. It's useful to have something handling SSL traffic, and this method is probably one of the safest.
how would I make ssl work because smarthings not working thanks
Additional security, enable multi-factor authentication for all users that access with external url.
Hmm I broke my HA. I was using DuckDNS with LetsEncrpt and exposing port 8123 by forwarding 443>8123. Then I followed this vid and changed the port forward 443-8123, just exposing native 443, and now I cannot access it via the external address, only internal, due to a 502 bad gateway error (browser) and just an access error on the app.
did you fixed it ?
@@kmtsvetanovI did, but not through any helpful way. I gave up trying. I waited a month or so, and then I re-installed the add-on and re-configured using the same values and now it works. Nothing was evident from the logs.
didnt blur your ip from the duckdns log fyi
[15:30:29] INFO: Running nginx...
nginx: [emerg] unexpected "}" in /share/nginx_proxy_default_fix_ingress.conf:14
[15:30:29] INFO: Service nginx exited with code 1 (by signal 0)
Yes... The video shows that the code ends in 8123/api, not with dots
i have a error in the nginx logs. nginx: [emerg] invalid URL prefix in /share/nginx_proxy_default_fix_ingress.conf:13. Any idea how to fix that?
i figured it out. i copied the code from your website and didn't take out the < and > on line 13 lol. Great video!