新增 gitea.timmy.edu.kg 反向代理 + Let's Encrypt 憑證

This commit is contained in:
timmy
2026-08-01 22:07:58 +08:00
parent 9c593b966b
commit 80b996d10e

View File

@@ -57,8 +57,8 @@ make clean # 連 volume 一起清掉(危險)
| 類型 | 數量 | | 類型 | 數量 |
|---|---| |---|---|
| Proxy Host | 35(全部啟用) | | Proxy Host | 36(全部啟用) |
| Certificate | 39(全為 Let's Encrypt | | Certificate | 40(全為 Let's Encrypt |
| Dead Host | 2`*.lotimmy.com``125.229.110.50` | | Dead Host | 2`*.lotimmy.com``125.229.110.50` |
| Access List | 1`Protect PACS` | | Access List | 1`Protect PACS` |
| Redirection Host / Stream | 0 | | Redirection Host / Stream | 0 |
@@ -74,6 +74,7 @@ make clean # 連 volume 一起清掉(危險)
| codimd.lotimmy.com | http://192.168.42.120:30921 | 強制 | h2 | | codimd.lotimmy.com | http://192.168.42.120:30921 | 強制 | h2 |
| dicom-server.lotimmy.com | http://192.168.42.124:60606 | SSL | block ws | | dicom-server.lotimmy.com | http://192.168.42.124:60606 | SSL | block ws |
| drawnix.timmy.edu.kg | http://192.168.42.124:40000 | SSL | block ws h2 | | drawnix.timmy.edu.kg | http://192.168.42.124:40000 | SSL | block ws h2 |
| gitea.timmy.edu.kg | http://192.168.42.124:31337 | 強制 | block ws h2 |
| headscale.lotimmy.com | http://192.168.42.126:8080 | SSL | cache block ws h2 | | headscale.lotimmy.com | http://192.168.42.126:8080 | SSL | cache block ws h2 |
| hoarder.lotimmy.com | http://192.168.42.124:3000 | SSL | block ws h2 | | hoarder.lotimmy.com | http://192.168.42.124:3000 | SSL | block ws h2 |
| httpbin.lotimmy.com | http://192.168.42.120:30921 | SSL | cache block ws h2 | | httpbin.lotimmy.com | http://192.168.42.120:30921 | SSL | cache block ws h2 |
@@ -110,7 +111,7 @@ make clean # 連 volume 一起清掉(危險)
| 後端 | 用途 | | 後端 | 用途 |
|---|---| |---|---|
| `192.168.42.124`(本機) | 11 個服務dicom-server、drawnix、hoarder、myspeed、noco、pacs、pb、picsur、prompt-opt、registry(+ui)、tinyauth ×2、NPM 自己 | | `192.168.42.124`(本機) | 12 個服務dicom-server、drawnix、gitea、hoarder、myspeed、noco、pacs、pb、picsur、prompt-opt、registry(+ui)、tinyauth ×2、NPM 自己 |
| `192.168.42.120:30921` | 4 個網域共用K8s NodePortcodimd、httpbin、opengist、vaultwarden | | `192.168.42.120:30921` | 4 個網域共用K8s NodePortcodimd、httpbin、opengist、vaultwarden |
| `192.168.42.108` | poke-api、pogo-viewer、ucapi | | `192.168.42.108` | poke-api、pogo-viewer、ucapi |
| `192.168.42.30` / `.38` / `.20` | PBS / PVE / Synology皆為 https 後端) | | `192.168.42.30` / `.38` / `.20` | PBS / PVE / Synology皆為 https 後端) |
@@ -118,7 +119,7 @@ make clean # 連 volume 一起清掉(危險)
## 憑證 ## 憑證
39 張全部由 Let's Encrypt 簽發。以到期日排序,需要注意的是前段: 40 張全部由 Let's Encrypt 簽發。以到期日排序,需要注意的是前段:
| 憑證 | 到期日 | 狀況 | | 憑證 | 到期日 | 狀況 |
|---|---|---| |---|---|---|
@@ -130,6 +131,7 @@ make clean # 連 volume 一起清掉(危險)
| auth.lotimmy.com | 2026-08-20 | 無對應 proxy host | | auth.lotimmy.com | 2026-08-20 | 無對應 proxy host |
| mailpit.lotimmy.com | 2026-09-01 | 使用中 | | mailpit.lotimmy.com | 2026-09-01 | 使用中 |
| …其餘 34 張 | 2026-09 ~ 2026-10 | 使用中,正常續期 | | …其餘 34 張 | 2026-09 ~ 2026-10 | 使用中,正常續期 |
| gitea.timmy.edu.kg (npm-88) | 2026-10-30 | 2026-08-01 新簽 |
已移除的憑證(連同 `live` / `archive` / `renewal` 檔案,皆以 `certbot delete` 清除): 已移除的憑證(連同 `live` / `archive` / `renewal` 檔案,皆以 `certbot delete` 清除):
@@ -147,5 +149,6 @@ make clean # 連 volume 一起清掉(危險)
- `letsencrypt/` 底下還有一批 DB 已軟刪除、但檔案還在的舊 lineage例如 `npm-4`2025 年 n8n 的舊憑證)。不影響運作,佔用也小,要清再說。 - `letsencrypt/` 底下還有一批 DB 已軟刪除、但檔案還在的舊 lineage例如 `npm-4`2025 年 n8n 的舊憑證)。不影響運作,佔用也小,要清再說。
- **沒有自動備份**。`data/` + `letsencrypt/` 打包丟到別台就夠,目前有 2026-04-18 與 2026-08-01 兩份手動 DB 備份。 - **沒有自動備份**。`data/` + `letsencrypt/` 打包丟到別台就夠,目前有 2026-04-18 與 2026-08-01 兩份手動 DB 備份。
- **watchtower 自動更新已開啟** 且 image tag 是 `latest`NPM 大版本更新會直接套用DB migration 失敗時沒有回退點——這是上一點更要緊的原因。 - **watchtower 自動更新已開啟** 且 image tag 是 `latest`NPM 大版本更新會直接套用DB migration 失敗時沒有回退點——這是上一點更要緊的原因。
- **單點故障**35 個網域全靠這台,其中 11 個服務也跑在同一台上。 - **單點故障**36 個網域全靠這台,其中 12 個服務也跑在同一台上。
- **Gitea 的 `ROOT_URL` 仍是 `http://192.168.42.124:31337/`**,所以 UI 顯示的 clone URL、通知信連結都還是舊的 IP:port。要改 `app.ini``[server] ROOT_URL = https://gitea.timmy.edu.kg/` 並重啟 Gitea。
- `dead_host``*.lotimmy.com` 泛用攔截,未定義的子網域會落到這裡,不會外洩到預設站台。 - `dead_host``*.lotimmy.com` 泛用攔截,未定義的子網域會落到這裡,不會外洩到預設站台。