启用 HTTPS:hai.tututu.cc 证书就位,README 补服务端信息与 certbot 环境变量坑

This commit is contained in:
hai committed 2026-12-04 17:23:53 +08:00
1 parent a39229ae62
commit c31689a01f
2 files changed
+19

No files matched your search

+18
View File
@@ -126,6 +126,24 @@
`.workbuddy/` 不同步(本地会话记忆,含本机路径);`archive/` 与 `附件/` 同步(体积小,合计 <1MB)。
### 服务端(Gitea)
| 项 | 值 |
|---|---|
| 地址 | `https://hai.tututu.cc/hai/Hai.git`(私有,未登录连页面都看不到) |
| 服务 | 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`,无需手动干预 |
**手动跑 certbot 必须带环境变量**,否则报 `ImportError: cannot import name 'appengine'`:
```bash
PYTHONPATH=/usr/lib/python3/dist-packages certbot renew
```
原因:`/usr/local/lib/python3.10/dist-packages` 里的 urllib3 2.x 会盖掉系统自带的 1.x。`certbot.service` 已用 drop-in 指定了正确的 `PYTHONPATH`,只有交互式 SSH 会话需手动带上——这条不写下来,下次一定会再踩一次。
## 5、写作约定
- 日期一律 `YYYY-MM-DD`;跨年时才写年份前缀