#Adding a custom domain to my home assistant installation in truenas
1 messages · Page 1 of 1 (latest)
Sure you can... that isn't really anything that needs to be TrueNAS specific (and I couldn't tell you if there's anything in TrueNAS to assist), but most set up a reverse proxy in front of Home Assistant and then you can configure that for your custom domain how you like. There's also nothing stopping you from just doing that w/ HA as-is, you can configure HA to serve an SSL certificate, but you'll need to handle the rotation of that on your own.
I think i'd go with the reverse proxy option, it's easier. Any idea of where and how I would do it?
There's quite a few options out there. I use Nginx Proxy Manager, you could add that as a container, it has an easy to use web UI you can you to set things up. It takes care of getting an SSL certificate for you as well.
You'll need to make sure to add the IP of your proxy to you http: integration config (https://www.home-assistant.io/integrations/http/#reverse-proxies).

thanks
@pliant solstice sorry for yet another question but where would I find this file?
That's your /config/configuration.yaml
also damn your fast
@pliant solstice update, manage to add mine, but I get a dns_probe_possible error everytime I try to access it:
Well.... the only way to get that to work would be if you control the DNS server of your client and even then you'd never get a trusted cert issued to it.
Do you have a domain of your own to use
uhh not really
I haven't purchased one
uhhh wdym?
It is a bad idea to base services of yours on an unreserved domain space with a domain you don't own. There are some free subdomain services out there, DuckDNS is popular, where you can select a subdomain and get control over the DNS for it. Otherwise, I'd strongly recommend, if you want to have a domain yourself to register the domain you plan on using.
ok i'll register it using duckdns
Depending on if you want external access, you'll need to make sure you configure that correctly to follow your IP address (assuming you aren't behind something like CGNAT) and forward the port your proxy uses. If you want internal only access, you could just have it resolve to you local address and it'll just work within your network
internal
and how do I get my access token? remember, i'm hosting duckdns on home assistant but nginx proxy on truenas scale if that matters
Access token for what, DuckDNS?
yeah
Should be at the top after you login
Duck DNS
ohh wait I wasn't on the official site
yeah nvm I got it now
I uhh can't see the site anywhere
i've searched up and down
ah nvm
k I added the site
what should I do now
this time I got a 500 internal server error
the new domain is under nfamily-homeassistant since the old one didn't work for duckdns
yeah nvm i'm getting the dns_probe_possible error again
i've also restarted and verified the integrity of the yaml config, everything works fine afaik
I am still getting the dns probe possible error however
@pliant solstice Any ideas?
You've got some type of DNS issue, which isn't anything with Home Assistant or your hardware if you're using DuckDNS
You'll need to make sure the IP is configured correctly. If you're just using local, you can do that using the Web UI
I am planning on making the reverse proxy local, yes
Uhh I don’t know, maybe I set something up wrong?
the config.yaml seems to be fine though
@pliant solstice Just to expand on what I said above, this isn’t meant to be an external link. All I need is a way to take a custom link and make it so that whoever types in that link on a device on the local network is forwarded to the ip and port my home assistant installation is on.
hope that clears things up a bit
There's a chance that http://homeassistant.local:8123/ might already do that for you without this additional set up
But yes, you can still set DuckDNS to your internal address. I'd suggest just doing a ping against it after setting it up and validate you see the correct internal IP address of your proxy
did that and got a 'dns probe possible' error
but I will try pinging it
That kind of seems like you might have a DNS issue with the client machine.... usually you'll get more definitive errors like NXDOMAIN instead of that
so your telling me that my laptop (in which I typed the link into) has a dns issue? because I tried this on other devices and got the same exact thing
How did the ping command result