Skip to content

Instantly share code, notes, and snippets.

@ZHLHZHU
ZHLHZHU / README.md
Created March 13, 2026 03:09
Tailscale Docker Compose (token redacted)

Tailscale SOCKS5 Proxy (Docker Compose)

用途:

  • 在 Docker 中启动 tailscale/tailscale,并开启 SOCKS5 代理服务。
  • 通过 TS_SOCKS5_SERVER=:6606 暴露代理端口,便于本机或指定网络通过 Tailscale 出口访问。

关键配置说明:

  • TS_AUTHKEY:用于节点登录 Tailscale(本 gist 已脱敏,实际使用请替换为你自己的 key)。
  • TS_STATE_DIR + volume:持久化 Tailscale 状态,避免容器重启后重复登录。
  • TS_USERSPACE=true:使用 userspace networking 模式,减少容器权限要求。
@ZHLHZHU
ZHLHZHU / pve-tailscale-renew.sh
Created September 21, 2024 15:45
Proxmox VE auto renew cert with Tailscale
#!/bin/bash
# Server name
servername="your-pve-domain.com"
# Set -e to exit on error
set -e
# Generate the key and write it to the target file
tailscale cert --key-file - $servername > /etc/pve/local/pveproxy-ssl.key