Closed canghai908 closed 1 year ago
If you're hosting on http, you'll need to change the config a bit:
- "traefik.http.routers.headscale-webui.entrypoints=web-secure"
- "traefik.http.routers.headscale-webui.tls.certresolver=letsencrypt"
Remove the certresolver line and change the entrypoint to match your HTTP entrypoint name in your Traefik config. Let me know if that works :)
Second: Are you going to http://headscale.opst.net/admin or just http://headscale.opst.net?
I remove the certresolver line and change the entrypoint to match my http. I use http://headscale.opst.net/admin can 308 to http://headscale.opst.net/admin/settings but it 404 not found
I use curl
* Trying 222.112.55.23:80... * Connected to headscale.opst.net (222.112.55.23) port 80 (#0) GET /admin HTTP/1.1 Host: headscale.opst.net User-Agent: curl/7.74.0 Accept: */* * Mark bundle as not supporting multiuse < HTTP/1.1 308 Permanent Redirect < Content-Length: 261 < Content-Type: text/html; charset=utf-8 < Date: Sun, 12 Feb 2023 03:37:26 GMT < Location: http://headscale.opst.net/admin/ < Server: gunicorn < * Ignoring the response-body * Connection #0 to host headscale.opst.net left intact * Issue another request to this URL: 'http://headscale.opst.net/admin/' * Found bundle for host headscale.opst.net: 0x55fd81d179d0 [serially] * Can not multiplex, even if we wanted to! * Re-using existing connection! (#0) with host headscale.opst.net * Connected to headscale.opst.net (222.112.55.23) port 80 (#0) GET /admin/ HTTP/1.1 Host: headscale.opst.net User-Agent: curl/7.74.0 Accept: */* * Mark bundle as not supporting multiuse < HTTP/1.1 302 Found < Content-Length: 217 < Content-Type: text/html; charset=utf-8 < Date: Sun, 12 Feb 2023 03:37:26 GMT < Location: /admin/settings < Server: gunicorn < * Ignoring the response-body * Connection #0 to host headscale.opst.net left intact * Issue another request to this URL: 'http://headscale.opst.net/admin/settings' * Found bundle for host headscale.opst.net: 0x55fd81d179d0 [serially] * Can not multiplex, even if we wanted to! * Re-using existing connection! (#0) with host headscale.opst.net * Connected to headscale.opst.net (222.112.55.23) port 80 (#0) GET /admin/settings HTTP/1.1 Host: headscale.opst.net User-Agent: curl/7.74.0 Accept: */* * Mark bundle as not supporting multiuse < HTTP/1.1 404 Not Found < Content-Length: 207 < Content-Type: text/html; charset=utf-8 < Date: Sun, 12 Feb 2023 03:37:26 GMT < Server: gunicorn < <!doctype html> <html lang=en> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p> * Connection #0 to host headscale.opst.net left intact
You might also need this line for your labels as well:
- 'traefik.http.routers.headscale-webui.middlewares=headscale-webui-stripprefix@docker'
I'll work on making this more friendly. Let me know if this works
You might also need this line for your labels as well:
- 'traefik.http.routers.headscale-webui.middlewares=headscale-webui-stripprefix@docker'
I'll work on making this more friendly. Let me know if this works
Thank you! It works
👍
I use trafik but cann't work ok
my docker-compose file is
I use http://headscale.opst.net is 404