Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure timeout #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ The following settings are available for configuration via environment variables
enabled, it defaults to `[commit]-[dyno]-[appname]`.
- `TAILSCALE_SHIELDS_UP"` - Block incoming connections from other devices on your Tailscale
network. Useful for personal devices that only make outgoing connections. Defaults to off.
- `TAILSCALED_VERBOSE` - Controls verbosity for the tailscaled command. Defaults to 0.
- ``TAILSCALED_VERBOSE`` - Controls verbosity for the tailscaled command. Defaults to 0.
- ``TAILSCALE_TIMEOUT`` - Maximum amount of time to wait for the Tailscale service to initialize.
The duration can be any value parseable by time.ParseDuration(). Defaults to 0s, which blocks
forever. Heroku will timeout after its boot timeout is reached (60s by default) and the dyno
will crash if the value of this variable is greater.

The following settings are for the compile process for the buildpack. If you change these, you must
trigger a new build to see the change. Simply changing the environment variables in Heroku will not
Expand Down
3 changes: 2 additions & 1 deletion bin/heroku-tailscale-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ else
--accept-routes=${TAILSCALE_ACCEPT_ROUTES:-true} \
--advertise-exit-node=${TAILSCALE_ADVERTISE_EXIT_NODE:-false} \
--shields-up=${TAILSCALE_SHIELDS_UP:-false}
--timeout=${TAILSCALE_TIMEOUT:-0s} # will not timeout by default
do
log "Waiting for 5s for Tailscale to start"
log "Waiting 5s for Tailscale to start"
sleep 5
done

Expand Down
Loading