Coder Social home page Coder Social logo

Comments (5)

routerino avatar routerino commented on June 6, 2024

For Question 1, you might be misunderstanding how the UI works. The docker container doesn't do any direct communication to headscale. All requests leave and arrive via your browser, and your browser definitely isn't inside a docker container.

Question 2 not really sure what you're asking for here. If you need additional authentication methods you can put in a forward auth proxy. Anything more sophisticated is only feasible with a backend authentication platform, and headscale UI is frontend only.

Question 3, I default to https as a security measure. You can make a custom caddyfile and place it in /data/Caddyfile via a bind mount if you want a non-secure connection. I may redo the caddyfile to use caddy's JSON at some point so I can be more sophisticated about environment variables.

from headscale-ui.

routerino avatar routerino commented on June 6, 2024

I'll close for now, Question 3 will be addressed with #37

from headscale-ui.

LOVECHEN avatar LOVECHEN commented on June 6, 2024

CleanShot 2022-08-11 at 13 53 49
CleanShot 2022-08-11 at 13 56 28

Authentication failed, but browser access is no problem

from headscale-ui.

routerino avatar routerino commented on June 6, 2024

Can you tell me what the console error says when this happens? You can find out by opening the dev console (control+shift+i) and reading out the error.

theoretically what you are trying to do should work, but it all works on the browser fetch method, which sometimes gets unhappy with insecure sites. I suspect you're having CORS problems because the browser doesn't think it's the same domain.

Easiest fix is to make sure both sites get served on the same IP and port, that will most likely fix your issue.

from headscale-ui.

LOVECHEN avatar LOVECHEN commented on June 6, 2024
headscale must be served over TLS/HTTPS
Remote access does not support unencrypted traffic.

thanks bro
i found this comment on headscale project , problem resolve

from headscale-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.