docs: gitea sync section - correct repo to m4mini warren/momentry_core (110.200 host defunct)

This commit is contained in:
Accusys
2026-11-05 16:14:22 +08:00
parent be3837ff06
commit e56e2892d0
+12 -7
View File
@@ -936,14 +936,19 @@ shellcheck scripts/*.sh monitor/**/*.sh
## Gitea Sync
主要 sync 管道為 Gitea:`http://192.168.110.200:3000/admin/momentry_core.git`
主要 sync 管道為 Gitea:`http://192.168.110.210:3000/warren/momentry_core.git`(m4mini)
> **2026-11-05 更正**:舊文檔記載的 `http://192.168.110.200:3000/admin/momentry_core.git`
> 已失效(主機無回應)。本機實際 remote 為 m4mini 的 `warren/momentry_core`,分支
> `feature/dynamic-concurrency-*` 為進行中工作分支。可用測試:
> `curl -s -u "warren:<TOKEN>" http://192.168.110.210:3000/api/v1/repos/warren/momentry_core`
### 產生 Access Token(首次設定)
```bash
# admin 帳號密碼為 AccusysTest!
TOKEN=$(curl -s -X POST "http://192.168.110.200:3000/api/v1/users/admin/tokens" \
-u "admin:AccusysTest!" \
# 登入 warren 帳號後於 API 產生 token(scopes: write:repository)
TOKEN=$(curl -s -X POST "http://192.168.110.210:3000/api/v1/users/warren/tokens" \
-u "warren:<PASSWORD>" \
-H "Content-Type: application/json" \
-d '{"name":"m5max128_push","scopes":["write:repository"]}' | jq -r '.sha1')
echo $TOKEN
@@ -953,11 +958,11 @@ echo $TOKEN
```bash
# 用 token 取代密碼
git remote add origin http://admin:TOKEN@192.168.110.200:3000/admin/momentry_core.git
git remote add origin http://warren:TOKEN@192.168.110.210:3000/warren/momentry_core.git
# 同步
git pull origin main
git push origin main
git pull origin feature/dynamic-concurrency-v1.3.4
git push origin feature/dynamic-concurrency-v1.3.4
```
### Token 記錄