gurucomputing / headscale-ui

A web frontend for the headscale Tailscale-compatible coordination server
BSD 3-Clause "New" or "Revised" License
1.59k stars 113 forks source link

please delete #113

Closed ithakaa closed 11 months ago

ithakaa commented 11 months ago

please delete this, stupid error on my part

routerino commented 11 months ago

I can see you're using IP instead of a reverse proxy. How to guide isn't going to help if you can't get past the front page readme.

HS-UI has to be ran on the same subdomain as headscale or you need to configure CORS. Yes you need to use a reverse proxy to do this. Use a reverse proxy. If you are trying to use raw IPs and ports, it will not work.

ithakaa commented 11 months ago

I've conducted sufficient testing to confirm that the issue persists whether we use IP addresses (which, as you've explained, shouldn't be used due to CORS, and I understand that) or domain names.

New nodes integrate with headscale without any issues and operate as intended. However, there's an ongoing problem where the Headscale-UI fails to establish a connection with the headscale server, even though the API keys are valid.

I've also involved a colleague in this matter, and they have reached the same outcome: the UI remains unable to establish a connection with the headscale server.

routerino commented 11 months ago

Are you using separate subdomains for headscale and headscale-ui or are you serving them both on the same subdomain and port?

ithakaa commented 11 months ago

Same domain, different path for the UI /web

routerino commented 11 months ago

Theoretically there shouldn't be anything else you have to accomplish.

You can review this guide to see if that provides more insight onto where it's falling over.

ithakaa commented 11 months ago

Thanks, I have come across that guide and although helpful still doesn't resolve the issue

Since my last message, another colleague, this makes it three, have attempted and failed to get the UI to integrate with headscale.

Really not sure where to turn now but if others have tried without success, they may have just abandoned the idea of using headache-ui which i personally believe is a great tool