Ensemble icon indicating copy to clipboard operation
Ensemble copied to clipboard

Logging in using a Tailscale URL is complicated (or any HTTP URL)

Open swever826 opened this issue 11 months ago • 5 comments

First thank you for this!! I always wanted to start using Music Assistant as an app.

Logging in using the local IP was easy, but trying to use my Tailscale URL I have assigned to my MA was more complicated than anticipated and maybe it can be improved?

After many tries, I was able to do it by adding the URL with an "http://" at the start. And then also adding the port 80 in the Port field.

I saw in the log that if I didn't add the "http://" to the URL, it automatically used HTTPS. Also if I didn't add a port, it used a random one. Maybe it could try by HTTP if HTTPS fails? And try automatically the port 80 instead of a random one?

Just thinking of ways for the initial setup to be more friendly. I understand using HTTP is a security risk, but if we are using a VPN like Tailscale there is no risk at all. Although a message indicating the risk if a HTTP connection is detected would be appreciated. Thanks again!!

swever826 avatar Dec 18 '25 23:12 swever826

Thanks for pointing that out. This should be fixed in the 2.1.1 release. Let me know how you get on.

CollotsSpot avatar Dec 19 '25 05:12 CollotsSpot

Hey thanks for the quick reply! I tried the new version, but now it doesnt detect that it needs authentication when using a Tailscale URL. Using the local IP asks for username and password, but using the Tailscale URL only asks for a Name and then it fails to access all my music because it needs to authenticate with credentials.

swever826 avatar Dec 19 '25 06:12 swever826

Thanks for the follow-up! Found the bug - when checking for auth on HTTP URLs without a port, it was incorrectly defaulting to port 8095 instead of port 80. This caused auth detection to fail for Tailscale URLs behind a reverse proxy.

Fixed in v2.1.2-beta: https://github.com/CollotsSpot/Ensemble/releases/tag/v2.1.2-beta

Please give it a try and let me know if it works now!

CollotsSpot avatar Dec 19 '25 06:12 CollotsSpot

Awesome! I tried a HTTP URL and a Tailscale URL and now both detect correctly the authentication requirement 🥳

I just needed to indicate the port 80 in the Port field because if I leave it blank, it tries to use a random port.

But its much easier now to do the initial setup with a HTTP/Tailscale URL. Thanks!

swever826 avatar Dec 19 '25 06:12 swever826

Lovely 🙂, I'll close the issue

CollotsSpot avatar Dec 19 '25 06:12 CollotsSpot