feat: add Quick Tunnel support for instant public URLs#924
Closed
lbajsarowicz wants to merge 12 commits into
Closed
feat: add Quick Tunnel support for instant public URLs#924lbajsarowicz wants to merge 12 commits into
lbajsarowicz wants to merge 12 commits into
Conversation
- Add traefik.enable=true to nginx-public.base.yml for defensive correctness - Remove redundant WARDEN_CLOUDFLARED_TUNNEL_ID export in cf.cmd create - Add comment linking UUID regex to sed substitution safety
3 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Cloudflare Tunnel/Quick Tunnel capabilities to Warden to expose local environments publicly, including compose partials/services and new warden cf subcommands for tunnel lifecycle and Quick Tunnel URL discovery.
Changes:
- Add
cloudflaredglobal service and config regeneration for Cloudflare Tunnel ingress routing. - Add project-level Quick Tunnel compose partials (nginx vs varnish upstream) behind
WARDEN_QUICK_TUNNEL=1. - Introduce
warden cfcommand group, includingwarden cf quickand update CHANGELOG.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
utils/core.sh |
Adds regenerateCloudflaredConfig for generating cloudflared ingress config and restarting the container. |
environments/includes/quick-tunnel.base.yml |
Introduces quick-tunnel service using cloudflared Quick Tunnel to nginx. |
environments/includes/quick-tunnel-varnish.base.yml |
Overrides Quick Tunnel upstream to route via varnish when enabled. |
environments/includes/nginx-public.base.yml |
Adds Traefik labels to route TRAEFIK_PUBLIC_DOMAIN and mark domain for cloudflared config generation. |
docker/docker-compose.cloudflared.yml |
Defines the global cloudflared service that runs with a generated config. |
commands/svc.cmd |
Conditionally includes the cloudflared compose file and triggers config regeneration on svc up. |
commands/env.cmd |
Conditionally includes new compose partials and triggers cloudflared config regeneration on env lifecycle actions. |
commands/cf.help |
Adds help/usage text for new warden cf subcommands including Quick Tunnel. |
commands/cf.cmd |
Implements warden cf subcommands (login/create/delete/status/update/logout/quick). |
CHANGELOG.md |
Adds UNRELEASED entries for Cloudflare Tunnel + Quick Tunnel. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Prevents trailing \r on Windows/WSL from breaking tunnel operations.
53e4099 to
2c6e0e8
Compare
Contributor
Author
|
Reopening as a PR within the fork to properly show diff against #923's branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Quick Tunnel support on top of the Cloudflare Tunnel integration (#923). Quick Tunnels provide instant public URLs without requiring a Cloudflare account, custom domain, or any setup.
WARDEN_QUICK_TUNNEL=1project-level toggle adds a cloudflared container to the project composeWARDEN_VARNISH=1, otherwise through nginx directlywarden cf quickcommand extracts and displays the random*.trycloudflare.comURLHow it works
No login, no credentials, no DNS configuration. Just:
Depends on
Related PRs
Test plan
WARDEN_QUICK_TUNNEL=1to a project.env, runwarden env upquick-tunnelcontainer is running:warden env pswarden cf quickshows the*.trycloudflare.comURLWARDEN_VARNISH=1, verify cloudflared routes to varnishWARDEN_QUICK_TUNNEL, verify no extra container is added