docs(tailscale-derp): 完善登录指南并更新docker-compose配置

1. 在README中细化tailscale容器登录步骤,增加状态验证说明
2. 更新docker-compose.yml,添加TS_USERSPACE环境变量和userspace-networking命令
3. 为DERP_VERIFY_CLIENTS设置默认值true
This commit is contained in:
arch3rPro
2026-04-01 21:15:30 +08:00
parent a81c787a0b
commit bee2a5a0fc
3 changed files with 27 additions and 9 deletions

View File

@@ -18,20 +18,28 @@ Tailscale DERP relay server with complete configuration, including coexistence o
### Login Guide
After deployment, you need to get the tailscale login link:
After deployment, the tailscale container needs login authentication to work properly:
1. **Check tailscale container logs for login link**:
```bash
# Check tailscale container logs for login link
# Check tailscale container logs
docker logs -f <container-name>-tailscale
```
Find the login link in the logs similar to:
2. **Find the login link in the logs**:
```
Switching ipn state NoState -> NeedsLogin (WantRunning=false, nm=false)
To authenticate, visit:
https://login.tailscale.com/a/xxxxxxx
```
Copy the link to browser and login to your Tailscale account.
3. **Copy the link to browser and login to your Tailscale account**
4. **Verify login status**:
After successful login, check the logs again should show:
```
Switching ipn state NeedsLogin -> Running (WantRunning=true, nm=false)
```
### Firewall Configuration