gurucomputing / headscale-ui

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

Headscale URL & API Key #111

Closed Ejz9 closed 1 year ago

Ejz9 commented 1 year ago

Supporting Details Provide the following:

Describe the Issue

I've setup headscale using their base docker-compose. The UI site loads just fine. I did have to mess around and create a config for headscale itself but after a container restart all is well. Although, I am struggling to connect headscale-UI to headscale. I am able to get my headscale API key. I cannot however get my headscale URL to work. I have it listening on 0.0.0.0:27896 and the URL I've been trying to have as 0.0.0.0:27896 or localhost ...etc. Regardless, after multiple attempts when trying to allow the two services to connect with each other, I cannot get the URL to work. I've skimmed your guide as well and I just cannot get past this. Nor does anything regarding headscale exist when I browse the URL it says it's on in the config.

I'm not an expert but I feel as though It's only a matter of pointing A to B yet there's some conflict... Any Help! Thanks!

ithakaa commented 1 year ago

Same issue

routerino commented 1 year ago

Headscale ui is not tested outside of port 443 or with IP addresses, you will break CORS.

HS-UI has to be ran on the same subdomain or you need to configure CORS. Yes you need to use a reverse proxy to do this. Use a reverse proxy.
routerino commented 1 year ago

Closed with https://github.com/gurucomputing/headscale-ui/commit/88012147d3a43b556f38ad8ff8e44d236f07d763