Bỏ qua để đến nội dung

Tailscale HTTPS

Tự động HTTPS sử dụng tailscale serve. Không cần quản lý chứng chỉ thủ công.

  • Tailscale đã cài đặt và xác thực
  • MagicDNS đã bật
  1. Triển khai với cờ Tailscale

    Terminal window
    ./scripts/termote.sh install container --tailscale myhost.ts.net
  2. Truy cập tại https://myhost.ts.net

Terminal window
# Cổng tùy chỉnh
./scripts/termote.sh install native --tailscale myhost.ts.net:8765
# Tailscale + LAN
./scripts/termote.sh install container --tailscale myhost.ts.net --lan
Internet → Tailscale (HTTPS) → localhost:7680 → tmux-api → ttyd

Tailscale xử lý:

  • Chứng chỉ TLS (tự động gia hạn)
  • Xác thực (Tailscale ACLs)
  • NAT traversal
Terminal window
docker run -d --name termote -p 7680:7680 \
-e TERMOTE_USER=admin -e TERMOTE_PASS=secret \
ghcr.io/lamngockhuong/termote:latest
sudo tailscale serve --bg --https=443 http://127.0.0.1:7680
# Truy cập tại: https://your-hostname.tailnet-name.ts.net