New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add Home Assistant shortname as allowed domain #81
Comments
How I said it's also working with trusted domain. The internal hostname address is with local (what you figured out here) But the tailscale VPN address is without local It's just nicer for external tailscale use also add the trusted domain without local or internal adress without .local. |
You can add homeassistant.local as CSRF allowed and https://homeassistant as Paperless URL then |
My setting works with the trusted domain. All is fine. The url automatically for tailscale would just be a shortcut and easier for some people. Not more :). With current settings all is fine so far. |
It shouldn't have worked that way so I'll try to allow both domains and raw urls to be added in the next release |
Okay, now I'm confused. Why shouldn't it have worked? In my internal network i use the default url: My "external" VPN link is So i just added homeassistant to the trusted domain. Works pretty well. For the mobile apps I added a port (this was you see in the picture), because of the authorization with HA. So I added the port 7071. |
Yes indeed, it works that way I thought full URLs were "http://homeassistant/" and "http://homeassistant.local:8123/" And because my script append ports to domains it will allow http://homeassistant:7071/ and http://homeassistant:8123/ by addin homeassistant to allowed domains The input is a domain, you put an URL but it's trimmed by my script, so if you were using a proxy to use domain without a port it does only works when using Paperless_URL option |
Ok yes, I think with Tailscale and VPN it's a simple setup also for the hostname. So therefore was just my idea to add a checkbox for Tailscale user instead of typing the "the magic dns" hostname manually as url or domain. This was just the small feature idea :) |
The problem is if I add an option for tailscape DNS you can either have someone using another short name like http://paperless or someone using others third party softwares, and I try the minimal required options to avoid cluttering |
It's fine was just an idea. Yes off course you can have multiple option for different third party software, but the DNS magic name looked very simple to figure out :). And a small checkbox to use or not use looked okay for me. Maybe you'll use Tailscale at some point and think it's a great idea, then you can reopen the ticket ;) |
I can indeed add shortname of the homeassistant hostaname by default, it was the case before I figured out they hard coded .local suffix On some networks homeassistant.local can also be resolved as https://homeassistant but shortnames seem to be less commonly used |
In my local network it's not working with the default settings. It just works in my VPN, but with port and without https (not necessary in VPN) |
In Tailscale there is a magic DNS resolution for the URL (https://tailscale.com/kb/1081/magicdns). Unfortunately it is not compatible with
homeassistant.local
becausea) The default setting uses
homeassistant
as DNS without localb) Only dashes and no dots are allowed in the hostname
With the new setting CSRF trusted domain you can set the url http://homeassistant:port. This is working as well :).
Maybe it's worth considering introducing a checkbox "Enable tailscale magic dns" in the config to automatically determine the url.
The text was updated successfully, but these errors were encountered: