Added TAILSCALED_ARGS environment variable to support SOCKS5 and HTTP proxies
This commit is contained in:
Frank Edwards 2023-08-29 16:31:18 +10:00
parent 8621ce058b
commit 955833c349
3 changed files with 4 additions and 2 deletions

View file

@ -68,6 +68,8 @@ The router must be be running RouterOS v7.6 or later with the container package
| CONTAINER_GATEWAY | The container bridge (veth1) IP address on the router | |
| LOGIN_SERVER | Headscale login server | Only required for Headscale control server. Do not set if using Tailscale |
| TAILSCALE_ARGS | Additional arguments passed to tailscale | Optional |
| TAILSCALED_ARGS | Additional arguments passed to tailscaled | Optional |
|
Example Tailscale control server configuration:
```

View file

@ -26,7 +26,7 @@
#
PLATFORM="linux/arm/v7"
TAILSCALE_VERSION=1.48.1
VERSION=0.1.21
VERSION=0.1.22
set -eu

View file

@ -27,7 +27,7 @@ if [[ -z "$LOGIN_SERVER" ]]; then
fi
# Start tailscaled and bring tailscale up
/usr/local/bin/tailscaled &
/usr/local/bin/tailscaled ${TAILSCALED_ARGS} &
until /usr/local/bin/tailscale up \
--reset --authkey=${AUTH_KEY} \
--login-server ${LOGIN_SERVER} \