🔄 卡若AI 同步 2026-04-02 18:57 | 更新:金仓Gitea脚本与配置、金仓、水桥平台对接、运营中枢工作台 | 排除 >20MB: 14 个

This commit is contained in:
2026-04-02 18:57:50 +08:00
parent 93fb54925b
commit 5487dfd1d0
5 changed files with 74 additions and 66 deletions

View File

@@ -4,8 +4,8 @@ description: CKB NAS 自建 Gitea 的仓库创建、推送、API、挂载管理
triggers: Gitea、Gitea管理、推送到Gitea、创建Gitea仓库、Git推送CKB、CKB_NAS_Git、仓库界面不显示
owner: 金仓
group: 金
version: "1.2"
updated: "2026-04-02"
version: "1.1"
updated: "2026-02-15"
---
# Gitea 管理
@@ -118,53 +118,6 @@ git push -u gitea main
---
## 六、Windows `git clone` 报 **502**(能开网页但 Git 失败)
**现象**`fatal: unable to access 'http://192.168.1.201:3000/fnvtk/xxx.git/': The requested URL returned error: 502`
**结论(已验证)**:在**与 NAS 同网段、直连 `192.168.1.201:3000`** 的机器上,`git clone`**GET `/info/refs` + POST `/git-upload-pack`** 均可 **200**,说明 **Gitea 与账号密码本身通常正常**502 多表示请求**未直连到 Gitea**,或**中间反代/代理**对 Git 的 POST 处理异常。
### 1. Windows 本机(优先做)
1. **确认能直连 NAS**:浏览器打开 `http://192.168.1.201:3000/fnvtk/users`(或对应仓库页),须与公司内网同一网段;若打不开,先修网络/VPN/路由,不要先怪 Git。
2. **清掉 Git 走系统代理**(很常见导致 502/奇怪中断):
```bat
git config --global --unset http.proxy
git config --global --unset https.proxy
```
若公司策略必须用代理,对局域网例外(示例,按实际代理地址改):
```bat
git config --global http.http://192.168.1.201:3000.proxy ""
```
3. **密码里有特殊字符(如末尾 `.`**:不要依赖「写在 URL 里」一种写法,改用**无密码 URL + 凭据**更稳:
```bat
git clone http://192.168.1.201:3000/fnvtk/users.git
```
提示用户名填 Gitea 账号,密码填 Gitea 密码;或先把密码 **URL 编码**再放进 URL末尾点 → `%2E`)。
4. **换 Git 版本**:过旧的 Git for Windows 对 HTTP/鉴权偶发问题,升级到较新版本再试。
### 2. NAS 前若有 Nginx/宝塔反代到 Gitea
在 **location** 里保证 Git 大 POST 不被掐断(示例,按实际 `proxy_pass` 改):
```nginx
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
proxy_request_buffering off;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
client_max_body_size 0;
```
改后 `nginx -t` 并重载。若反代只监听外网、内网直连 3000 正常,则**内网同事请直接用 `http://IP:3000`,不要走域名反代**,可立刻规避 502。
### 3. 外网拉取
内网不可达时,用 Skill 第二节中的 **FRP/域名**(如 `open.quwanzhi.com` 与对应端口remote 改为该地址;仍 502 时同样检查**该链路上的 Nginx 配置**与 **frpc → 本机 3000** 是否存活。
---
## 七、关联文档(见第十一节)
---

View File

@@ -1,7 +1,23 @@
{
"updated": "2026-04-02T10:23:07.751956+00:00",
"updated": "2026-04-02T10:55:40.096813+00:00",
"conversations": [
{
"对话ID": "60f893b4-a54b-4d82-b3de-ea25a0f3832e",
"名称": "打开飞书的妙记录音",
"项目": "飞书",
"首条消息": "",
"创建时间": "2026-04-02T10:49:56.694000+00:00",
"消息数量": 1
},
{
"对话ID": "2ebd9f36-68e3-4f16-9e7c-cb4aade04532",
"名称": "Feishu voice recording feature",
"项目": "飞书",
"首条消息": "打开飞书的妙记录音",
"创建时间": "2026-04-02T10:52:51.849000+00:00",
"消息数量": 13
},
{
"对话ID": "d82762c6-465a-43c3-9024-4a5c9935201d",
"名称": "会议电视投屏到期问题",
"项目": "设备管理",
@@ -224,22 +240,6 @@
"首条消息": "从mongo数据库内获得这个workspace的公司的nas,帮处理一下这个问题",
"创建时间": "2026-03-31T03:10:10.385000+00:00",
"消息数量": 34
},
{
"对话ID": "c38d77b3-f334-42b7-af72-9048accbb93f",
"名称": "运行过程讨论",
"项目": "未分类",
"首条消息": "运行",
"创建时间": "2026-03-31T03:03:56.342000+00:00",
"消息数量": 57
},
{
"对话ID": "830af9a6-5edc-4a05-8897-99e2a0af7f62",
"名称": "数据库",
"项目": "服务器",
"首条消息": "数据库,把本地的数据上传到宝塔服务器",
"创建时间": "2026-03-31T02:40:45.108000+00:00",
"消息数量": 294
}
]
}

View File

@@ -0,0 +1,53 @@
#!/usr/bin/env bash
# 用 lark-cli 拉取妙记 Open API 返回的官方 url再 macOS open。
# 前置lark-cli 已 config init且 lark-cli auth login 完成(建议 user能打开自己有权限的妙记
# 用法:
# ./lark_cli_open_minute.sh <minute_token>
# ./lark_cli_open_minute.sh 'https://cunkebao.feishu.cn/minutes/obcxxxxxxxx'
# ./lark_cli_open_minute.sh --home # 仅打开妙记首页(不调用 APIlark-cli 无「首页」接口)
set -euo pipefail
HOME_URL="${FEISHU_MINUTES_HOME:-https://cunkebao.feishu.cn/minutes}"
if [[ "${1:-}" == "--home" ]]; then
exec open "$HOME_URL"
fi
raw="${1:-}"
if [[ -z "$raw" ]]; then
echo "用法: $0 <minute_token | 妙记完整URL> | --home" >&2
echo "示例: $0 obcnq3b9jl72l83w4f14xxxx" >&2
echo "首页: $0 --home (或设 FEISHU_MINUTES_HOME" >&2
exit 1
fi
if [[ "$raw" == *"/minutes/"* ]]; then
token="${raw##*/minutes/}"
token="${token%%\?*}"
else
token="$raw"
fi
json="$(lark-cli minutes minutes get --as user --params "$(printf '%s' "{\"minute_token\":\"$token\"}")" --format json)"
url="$(printf '%s' "$json" | python3 -c '
import json, sys
d = json.load(sys.stdin)
if d.get("ok") is False:
err = d.get("error") or {}
sys.stderr.write((err.get("message") or err.get("type") or "error") + "\n")
if err.get("hint"):
sys.stderr.write(err["hint"] + "\n")
raise SystemExit(1)
data = d.get("data") or d
minute = (data.get("minute") if isinstance(data, dict) else None) or {}
url = minute.get("url") if isinstance(minute, dict) else None
if not url:
sys.stderr.write("响应中无 minute.url请检查 token 与权限。\n")
print(json.dumps(d, ensure_ascii=False, indent=2), file=sys.stderr)
raise SystemExit(1)
print(url)
')"
exec open "$url"

View File

@@ -510,3 +510,4 @@
| 2026-04-01 16:48:21 | 🔄 卡若AI 同步 2026-04-01 16:48 | 更新:火炬、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-04-01 16:53:31 | 🔄 卡若AI 同步 2026-04-01 16:53 | 更新:火炬、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-04-01 19:28:31 | 🔄 卡若AI 同步 2026-04-01 19:28 | 更新Cursor规则、金仓、水溪整理归档、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 |
| 2026-04-02 18:23:25 | 🔄 卡若AI 同步 2026-04-02 18:23 | 更新金仓Gitea脚本与配置、金仓、水溪整理归档、卡木、运营中枢工作台 | 排除 >20MB: 14 个 |

View File

@@ -514,3 +514,4 @@
| 2026-04-01 16:48:21 | 成功 | 成功 | 🔄 卡若AI 同步 2026-04-01 16:48 | 更新:火炬、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://192.168.1.201:3000/fnvtk/karuo-ai) [百科](http://192.168.1.201:3000/fnvtk/karuo-ai/wiki) |
| 2026-04-01 16:53:31 | 成功 | 成功 | 🔄 卡若AI 同步 2026-04-01 16:53 | 更新:火炬、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://192.168.1.201:3000/fnvtk/karuo-ai) [百科](http://192.168.1.201:3000/fnvtk/karuo-ai/wiki) |
| 2026-04-01 19:28:31 | 成功 | 成功 | 🔄 卡若AI 同步 2026-04-01 19:28 | 更新Cursor规则、金仓、水溪整理归档、总索引与入口、运营中枢参考资料、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://192.168.1.201:3000/fnvtk/karuo-ai) [百科](http://192.168.1.201:3000/fnvtk/karuo-ai/wiki) |
| 2026-04-02 18:23:25 | 成功 | 成功 | 🔄 卡若AI 同步 2026-04-02 18:23 | 更新金仓Gitea脚本与配置、金仓、水溪整理归档、卡木、运营中枢工作台 | 排除 >20MB: 14 个 | [仓库](http://192.168.1.201:3000/fnvtk/karuo-ai) [百科](http://192.168.1.201:3000/fnvtk/karuo-ai/wiki) |