Open Kiser360 opened 11 months ago
I did some of the work to investigate the fix:
Start services, but we expect a failure : docker compose up -d
Shell into the docker container: docker compose exec -it <container-name> bash
Modify the docker mod : nano /etc/s6-overlay/s6-rc.d/svc-tailscale-up/run
Change the line mentioned in the top post, remove the protocol from the target
http://localhost:"${TAILSCALE_SERVE_PORT}
-> localhost:"${TAILSCALE_SERVE_PORT}
Restart services : docker compose restart
This fix works for TAILSCALE_SERVE_MODE=tls-terminated-tcp. I have not tested for any other modes
Can confirm this also works for me, and fits with the fact they changed the serve + funnel logic. Would have been nice if they updated their mods at the same time :P
I hate to add what's essentially noise to an issue thread, but since there's no upstream response I thought a little noise might be warranted.
The very first service I wanted to test this mod with was Quassel, and IRC client. Thus my attempt was met with a known error. Please review this issue.
Scenario Trying to follow the blog article's docker-compose.yml snippet for code-server. I've made no changes except filling in the secrets.
Problem
error: failed to apply TCP serve: unable to expand target: must be a URL starting with one of the supported schemes: [tcp]
Research This commit suggests Tailscale 1.52.0 made some CLI changes. Looking at the docs it suggests that when using
--tls-terminated-tcp
specifying a 'target' withhttp://
might be invalid. The docs even say that the protocol can be omitted.Problem This line will always specify
http://
regardless of TAILSCALE_SERVE_MODE.Solution: Perhaps omit the protocol from the
tailscale serve
command?Can't validate the solution and do the pull myself, but I didn't want the research to go to waste.