Skip to content

Conversation

@CoderMiguel
Copy link

prognostikos and others added 5 commits May 12, 2025 14:54
The Heroku-24 stack does not include `bc` and bash cannot do non-integer
math. Use `awk` to convert the timeout & interval to milliseconds so we
can use build-in bash math operators.
(tailscaled -verbose ${TAILSCALED_VERBOSE:--1} --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 &)
(tailscaled -verbose ${TAILSCALED_VERBOSE:--1} --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 &)
tailscale up \
--authkey="${TAILSCALE_AUTH_KEY}?preauthorized=true&ephemeral=true" \
Copy link
Author

Choose a reason for hiding this comment

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

the query params here are causing a:

backend error: invalid key: unable to validate API key

I believe that these attributes are handled in the API Key that is generated in the Tailscale admin UI

Comment on lines -48 to +52
--timeout=15s \
${TAILSCALE_ADDITIONAL_ARGS:---timeout=15s}
${TAILSCALE_ADDITIONAL_ARGS:---accept-routes --timeout=15s}
Copy link
Author

Choose a reason for hiding this comment

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

This is a refactor to make sure that the --timeout flag value that may be in $TAILSCALE_ADDITIONAL_ARGS is not overridden by the preexisting --timeout=15s \ and leaves --accept-routes as a default but an option that could be removed as well without making a new $ENV_VAR

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