Skip to content

feat: example for using tunnels#754

Merged
james-rl merged 11 commits intomainfrom
james/ex-tunnel
Mar 23, 2026
Merged

feat: example for using tunnels#754
james-rl merged 11 commits intomainfrom
james/ex-tunnel

Conversation

@james-rl
Copy link
Contributor

@james-rl james-rl commented Mar 4, 2026

Basic example using tunnels

@james-rl james-rl requested a review from sid-rl March 4, 2026 01:01
Copy link
Contributor

@sid-rl sid-rl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

# Enable a tunnel to expose the HTTP server
# For authenticated tunnels, use auth_mode="authenticated" and include the auth_token
# in your requests via the Authorization header: `Authorization: Bearer {tunnel.auth_token}`
tunnel = await devbox.net.enable_tunnel(auth_mode="open")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: tunnel is unused. Let's move this to devbox create

@james-rl james-rl merged commit 97bcd70 into main Mar 23, 2026
7 checks passed
@james-rl james-rl deleted the james/ex-tunnel branch March 23, 2026 21:36
@stainless-app stainless-app bot mentioned this pull request Mar 23, 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.

3 participants