Skip to content

feat: add COLLIE_SKIP_SERVE to bypass tailscale serve#13

Closed
diogenesc wants to merge 1 commit into
AltanS:mainfrom
diogenesc:feat/collie-skip-serve
Closed

feat: add COLLIE_SKIP_SERVE to bypass tailscale serve#13
diogenesc wants to merge 1 commit into
AltanS:mainfrom
diogenesc:feat/collie-skip-serve

Conversation

@diogenesc

Copy link
Copy Markdown
Contributor

Summary

Adds COLLIE_SKIP_SERVE=1 env var to skip tailscale serve entirely. The bridge stays on loopback only (or 0.0.0.0 if COLLIE_HOST is set), ideal for deployments behind a reverse proxy (Caddy, Nginx, etc.) or direct port access via MagicDNS.

Changes

  • scripts/collie-ctl.sh: cmd_serve(), cmd_unserve(), cmd_status(), and print_status_banner() all respect COLLIE_SKIP_SERVE=1
  • .env.example: documents the new variable
  • Version bumped to 0.12.0 (minor)

Use case

When running Collie behind Caddy/Nginx or accessing directly via http://host:port, there's no need for tailscale serve — your proxy handles TLS, auth, and public access. This avoids the bridge fighting over the tailscale serve mapping.

Adds COLLIE_SKIP_SERVE=1 support to collie-ctl.sh so the bridge can
run behind a reverse proxy (Caddy, Nginx, etc.) without triggering
tailscale serve. The bridge stays on 127.0.0.1 only — your proxy
handles TLS, auth, and public access.

- cmd_serve/cmd_unserve: early return when COLLIE_SKIP_SERVE=1
- print_status_banner: shows 'proxy' instead of 'tailnet' when skipped
- cmd_status: skips tailscale serve status check when skipped
- .env.example: documents the new variable
- Version bumped to 0.12.0 (minor — new feature)
@AltanS

AltanS commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Thanks @diogenesc! this is a use case I want to support properly, so I picked it up into #14 and bundled the security-docs changes it needed; your commit rides along there. It'll close this PR when it lands. Appreciate it 🙏

@AltanS AltanS closed this in #14 Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants