snopoke

Tailscale Serve

運維安全v1.0.0
作者:snopoke更新於 2026-05-11tailscale-serve@clawhub_snopoke/tailscale-serve
伺服器運維配置生成DevOps

據 AlphaMoat 統計,截至 2026-09,Tailscale Serve 累計下載 2,981 次、獲 2 個星標,在全部 5,078 個 AI 技能中排名第 3,742 位,在「運維安全」分類(264 個)中排名第 241 位。

累計安裝
198
累計下載
2981
星標
2
全站排名
#3,742
全站前 74% · 「運維安全」前 92%
平台累計安裝累計下載星標評論
ClawHub ↗8325312-
SkillHub ↗19829812—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文涵蓋檢視當前服務、將檔案或目錄對映到路徑、提供本地埠服務以及移除單一路徑,並提醒根路徑可能覆蓋其他路徑。

資料釋出於 2026-10-27

可以用來做什麼

  • 配置或檢查 Tailscale Serve 路徑

什麼時候用

  • 需要同時提供多個檔案或本地服務時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查當前 Serve 配置,並說明如何新增一個獨立路徑

月度資料趨勢

累計下載2981
1893247830622026-03 · 累計下載 19742026-05 · 累計下載 21922026-06 · 累計下載 23202026-07 · 累計下載 25372026-08 · 累計下載 26682026-09 · 累計下載 298126-0326-09
星標2
1222026-03 · 星標 12026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092981—2
2026-082668+5.2%2
2026-072537+9.4%2
2026-062320+5.8%2
2026-052192—2
2026-031974—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.2 KB · ClawHub v1.0.0
# Tailscale Serve Skill

Manage multiple paths with `tailscale serve` without conflicts.

## Key Commands

### Check what's currently served
```bash
tailscale serve status
```
展開全部(共 93 行)

### Serve a directory or file at a specific path
```bash
# Directory
tailscale serve --bg --set-path /slides /path/to/directory

# Single file
tailscale serve --bg --set-path /presentation /path/to/file.html

# Port (for running services)
tailscale serve --bg --set-path /api http://localhost:8080
```

### Serve from a port at root (replaces everything)
```bash
tailscale serve --bg 8888
```

### Remove a specific path
```bash
tailscale serve --https=443 /slides off
```

### Reset all serving
```bash
tailscale serve reset
```

## Important Notes

- **Path conflicts:** Serving at `/` will override all other paths
- **Background mode:** Use `--bg` to keep it running
- **Multiple paths:** You can serve multiple things simultaneously with different paths
- **Status first:** Always check `tailscale serve status` before adding new paths

## Common Patterns

### Serve presentation alongside control UI
```bash
# If control UI is at /, serve presentation at a subpath
tailscale serve --bg --set-path /slides ~/clawd/personal-agents-presentation.html

# Access at: https://[hostname].ts.net/slides
```

### Serve multiple directories
```bash
tailscale serve --bg --set-path /docs ~/documents
tailscale serve --bg --set-path /slides ~/presentations
tailscale serve --bg --set-path /files ~/files
```

### Serve a local dev server
```bash
tailscale serve --bg --set-path /app http://localhost:3000
```

## Workflow

1. Check current status: `tailscale serve status`
2. Choose an unused path (e.g., `/slides`, `/docs`, `/api`)
3. Serve with `--set-path /your-path /source`
4. Verify with `tailscale serve status` again
5. Share the full URL: `https://[hostname].ts.net/your-path`

## Troubleshooting

**"Can't access my served content"**
- Check `tailscale serve status` - is it at the path you expect?
- Did something else overwrite the root `/`?

**"Want to replace everything with a port"**
```bash
tailscale serve reset
tailscale serve --bg 8888
```

**"Want to add to existing setup"**
```bash
# Don't use reset! Just add with --set-path
tailscale serve --bg --set-path /newpath /source
```

「運維安全」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。