文档站改为公开只读:取消强制登录、裸域名直达、加 robots 限制(D35)

This commit is contained in:
hai committed 2026-12-04 17:30:03 +08:00
1 parent c31689a01f
commit 426f4676ad
3 files changed
+27 -1

No files matched your search

+5 -1
View File
@@ -130,12 +130,16 @@
| 项 | 值 |
|---|---|
| 地址 | `https://hai.tututu.cc/hai/Hai.git`(私有,未登录连页面都看不到) |
| 地址 | `https://hai.tututu.cc/hai/Hai.git` |
| **读** | **公开只读,无需登录**。裸域名 `https://hai.tututu.cc/` 直接跳到文档页;`robots.txt` 已设为 `Disallow: /`(只降低被收录概率,不是访问控制) |
| **写** | 仍需登录(`git push`、改设置、发 issue) |
| 服务 | systemd `gitea.service`,只监听 `127.0.0.1:3001`,由 nginx 反代;公网无法直连端口 |
| 隔离 | 独立系统用户 `gitea`,数据在 `/srv/Hai`;`tututu.cc` 主站配置独立,互不影响 |
| 证书 | Let's Encrypt,`/etc/letsencrypt/live/hai.tututu.cc/`,2027-03-04 到期 |
| 自动续期 | `certbot.timer`,已配 `renew_hook = systemctl reload nginx`,无需手动干预 |
⚠️ **公开的前提是文档不含敏感信息。** 写入密码、令牌、他人隐私之前,必须先把仓库转回 private(`hai/Hai` → Settings → 危险区 → 改为私有),否则等于公开发布。
**手动跑 certbot 必须带环境变量**,否则报 `ImportError: cannot import name 'appengine'`:
```bash