diff --git a/services/gitea.md b/services/gitea.md index 6d82e7a..38ed9c3 100644 --- a/services/gitea.md +++ b/services/gitea.md @@ -1,6 +1,6 @@ --- title: Gitea 서버 및 CI/CD -updated: 2026-03-15 +updated: 2026-03-17 --- ## 서버 @@ -48,3 +48,17 @@ K8s CronJob `gitea-backup` (매일 03:00 UTC): - `gitea dump` → `/backup/gitea-dump-*.tar.gz` - 7일 보존, Longhorn PVC 10Gi - 매니페스트: `~/k8s/gitea/backup-cronjob.yaml` + +## 트러블슈팅 + +### 웹 로그인 안 될 때 비밀번호 리셋 + +```bash +curl -s -X PATCH "https://gitea.anvil.it.com/api/v1/admin/users/kaffa" \ + -H "Authorization: token " \ + -H "Content-Type: application/json" \ + -d '{"password":"","must_change_password":false,"login_name":"kaffa","source_id":0}' +``` + +- API 토큰, 비밀번호: Vault `secret/apps/gitea` +- 2026-03-17 웹 로그인 불가 → API로 비밀번호 리셋하여 해결