Logging in using a Tailscale URL is complicated (or any HTTP URL)
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!!
Thanks for pointing that out. This should be fixed in the 2.1.1 release. Let me know how you get on.
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.
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!
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!
Lovely 🙂, I'll close the issue