So im trying to get https working with home assistant properly.
I have followed most of this video....
DuckDNS, letsencrypt, ingix, proxynet all working....
I can access Home asssistant from outside my network via https://blahblah-hass.duckdns.org
even if i do not type the https, it will go to https, i get the lock icon in the web browser.
That web address does not work INSIDE my network. i have to use the IP address 192.168.1.##:8123
So I went back over this video today.
Home assistant was not set to Network : Custom: proxynet it was Host...
Change HA docker to proxmox... restarted, and no WebGUI... inside or outside network, Port mappings are gone ?!?
cant access from inside or outside network by any address.
Went back in to edit HA docker config to add "Fixed IP address (optional): " and i entered its IP 192.168.1.##/24 - apparently this was wrong
I still dont understand the /16 /24 stuff of an IP address...
Docker rebuild failed. docker gone. ?!?
Re-installed docker... left it on Host. WebUi is back while inside my network.
If I try to access HA from outside my network via my duckDNS address, i get home assistant error message
Had to manually rebuid port mapping for HA docker container.... now accessible from outside network again via web address.
ok so... now working same as when I started, but one difference, network is set to Proxynet.
Still cannot access containers via web addresses within the network. only outside.
IPs only work inside network.
i get to 21:15 in the video, he restarts letsencrypt, and he can access via webaddress with HTTPS,
i cannot.
here is my ngix config for HA, the "##" and "blah-blah" were added in the addresses for security in this post.
# make sure that your dns has a cname set for homeassistant and that your homeassistant container is not using a base url
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name blah-blah-hass.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth, fill in ldap details in ldap.conf
#include /config/nginx/ldap.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /login;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_homeassistant home-assistant;
proxy_pass http://192.168.1.##:8123;
}
location /api/websocket {
resolver 127.0.0.11 valid=30s;
set $upstream_homeassistant Home-Assistant-Core;
proxy_pass http://192.168.1.##:8123;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
I do notice something different in my config than his....
where i have an IP address " http://192.168.1.12:8123 "
he hass something that would translate to "http://$upstream_homeassistant:8123 "
I tried changing it... no fix.
im confused.
Am i missing some type of reverse dns?
EDIT : found this on redit
Bind docker... or better router... pfsense.... I knew you were coming...