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
累计下载
2,981
星标
2
全站排名
#3,742
全站前 74% · 「运维安全」前 92%
平台累计安装累计下载星标评论
ClawHub ↗832,5312-
SkillHub ↗1982,9812—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文涵盖查看当前服务、将文件或目录映射到路径、提供本地端口服务以及移除单一路径,并提醒根路径可能覆盖其他路径。

资料发布于 2026-10-27

可以用来做什么

  • 配置或检查 Tailscale Serve 路径

什么时候用

  • 需要同时提供多个文件或本地服务时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查当前 Serve 配置,并说明如何添加一个独立路径

月度数据趋势

累计下载2,981
1,8932,4783,0622026-03 · 累计下载 1,9742026-05 · 累计下载 2,1922026-06 · 累计下载 2,3202026-07 · 累计下载 2,5372026-08 · 累计下载 2,6682026-09 · 累计下载 2,98126-0326-09
星标2
1222026-03 · 星标 12026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,981—2
2026-082,668+5.2%2
2026-072,537+9.4%2
2026-062,320+5.8%2
2026-052,192—2
2026-031,974—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),按月更新。口径说明见数据方法。