# kit-connect — Unified router connectivity config
# One SPK, all routers. Hub assigns ports and keys.
# Edit this file or re-run postinst to re-register with hub.

# ── Device Identity ─────────────────────────────────────────────────
DEVICE_ID="REPLACE_WITH_DEVICE_ID"

# ── Hub Registration ────────────────────────────────────────────────
HUB_HOST="162.243.83.36"
HUB_PORT="8080"

# ── Reverse SSH Tunnel ──────────────────────────────────────────────
# Port 0 = auto-assign via hub registration
TUNNEL_ENABLE=1
TUNNEL_REMOTE_HOST="162.243.83.36"
TUNNEL_REMOTE_USER="node"
TUNNEL_REMOTE_SSH_PORT="22"
TUNNEL_REMOTE_PORT="0"
TUNNEL_LOCAL_SSH_PORT="2223"
TUNNEL_RETRY_DELAY="30"

# ── Tailscale ──────────────────────────────────────────────────────
TAILSCALE_ENABLE=1
TAILSCALE_STATEDIR="/var/packages/Tailscale/var/state"
TAILSCALE_SOCKET="/var/packages/Tailscale/var/run/tailscaled.sock"
TAILSCALE_AUTH_KEY="tskey-auth-kJz8wqNVo211CNTRL-GNL5EFjp5aWQcaWPSVn2aW9TNworKUNBV"
TAILSCALE_HOSTNAME=""

# ── Behaviour ──────────────────────────────────────────────────────
WATCHDOG_INTERVAL=60
FORWARD_FAIL_LIMIT=2
