automa/tailscale/.env.example
m1ngsama e5542de818 polish: CLI UX overhaul and rich .env.example metadata
CLI improvements:
- Unicode status indicators (✔ ✘ ▶ ● ○ ⚠) and braille spinners
- Animated spinner for docker pull/up operations
- Project metadata parsed from .env.example (@name, @desc, @url, @port, @note)
- Descriptions shown in list, deploy selection, and status views
- Auto-generate passwords for secret fields (PASSWORD/TOKEN/AUTHKEY)
- Confirmation prompt before deploy with project summary
- Post-deploy access URL hint based on @port metadata
- Divider lines for visual section separation
- Helpful error messages with suggested commands
- Command aliases: ls, st, ps, down, log, configure
- Bash 3.2 compatible (no associative arrays)

.env.example enrichment:
- All projects now have @name, @desc, @url, @port metadata headers
- Inline field descriptions shown as context during interactive config
- Tailscale: @note hints for profile-based DERP deployment
- Structured comments group related settings visually

Installer:
- Prerequisite check with per-tool status (✔/✘)
- Quieter git operations
- Cleaner post-install instructions
2026-04-15 10:15:43 +08:00

28 lines
913 B
Text

# @name Tailscale + DERP
# @desc Tailscale mesh VPN client with optional DERP relay
# @url https://tailscale.com/kb/1282/docker
# @note Deploy tailscale only: docker compose --profile tailscale up -d
# @note Deploy with DERP relay: docker compose --profile derp up -d
TZ=Asia/Shanghai
# Hostname shown in the Tailscale admin console
TS_HOSTNAME=
# Auth key — generate at https://login.tailscale.com/admin/settings/keys
# For headscale: generate via headscale CLI
TS_AUTHKEY=
# Extra arguments passed to tailscaled
# For headscale users, add: --login-server=https://your.headscale.host
TS_EXTRA_ARGS=--advertise-tags=tag:container
# Networking mode: false = kernel (better performance), true = userspace
TS_USERSPACE=false
TS_FIREWALL_MODE=nftables
# DERP relay settings (only used with --profile derp)
# Public IP of this server — clients connect to this address
DERP_HOST=
DERP_PORT=443
STUN_PORT=3478