Auto-sync: 2026-04-23 04:02
This commit is contained in:
@@ -1,33 +1,25 @@
|
||||
---
|
||||
title: "Gitea"
|
||||
type: entity
|
||||
tags: [git, self-hosted, github-alternative, devops]
|
||||
sources: [self-healing-home-server]
|
||||
last_updated: 2026-04-22
|
||||
tags: [Git, 版本控制, 自托管]
|
||||
sources: []
|
||||
last_updated: 2026-04-09
|
||||
---
|
||||
|
||||
## Aliases
|
||||
- Gitea
|
||||
- gitea
|
||||
# Gitea
|
||||
|
||||
## Definition
|
||||
Gitea 是一个开源、轻量级的自托管 Git 服务(GitHub/GitLab 替代方案),使用 Go 语言编写,最低硬件要求极低(512MB RAM)。支持 Git 仓库管理、Issue 追踪、Pull Request、Wiki、CI/CD(Actions)等完整功能。
|
||||
## 描述
|
||||
轻量级的自托管 Git 服务,托管笔记的版本控制,所有历史版本完整保留。
|
||||
|
||||
## In Home Lab Context
|
||||
在 [[self-healing-home-server]] 安全架构中,Gitea 作为**本地优先 Git 仓库**:
|
||||
- 作为私有代码中转站(推送到公共 GitHub 前的 CI 扫描_gate)
|
||||
- CI pipeline 运行 TruffleHog 等 secrets scanning 工具
|
||||
- Human review required before main branch merges
|
||||
- 防止 Agent 直接暴露 API keys 到公共仓库
|
||||
## 与 Obsidian 笔记系统的集成
|
||||
|
||||
## Security Role
|
||||
Gitea 在 [[Local-first Git]] 工作流中的位置:
|
||||
```
|
||||
Agent → commits → Gitea (private) → CI scan (TruffleHog) → Human review → GitHub (public)
|
||||
```
|
||||
通过 Obsidian Git 插件,笔记每次更新都对应一个 Git commit:
|
||||
- **任何时候都能回溯** — 三个月前某台服务器上跑的什么服务,一个 `git log` 就能找到
|
||||
- **变更有据可查** — "这个端口是什么时候改的?" → commit message 里写得清清楚楚
|
||||
- **多人协作预留** — 未来如果想让其他 AI Agent 也参与协作,Gitea 的权限体系天然支持
|
||||
|
||||
## Connections
|
||||
- [[Local-first Git]] — Gitea 作为私有中转的核心基础设施
|
||||
- [[OpenClaw]] — Agent 代码托管和工作流编排平台
|
||||
- [[TruffleHog]] — Gitea CI pipeline 中运行的 secrets scanning 工具
|
||||
- [[Defense-in-Depth]] — Gitea 是多层安全防御架构的一环
|
||||
## 核心价值
|
||||
AI 批量改文件的能力越强,越需要版本管理来兜底。自建服务确保私有数据不出内网。
|
||||
|
||||
## 相关来源
|
||||
- [[养虾日记3-用-obsidian-gitea-为-ai-助手构建持久化笔记系统]]
|
||||
|
||||
Reference in New Issue
Block a user