Initial commit: LogHive centralized log management system

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
v6ole
2026-05-09 14:55:14 +08:00
commit abfd07331e
54 changed files with 3816 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# LogHive Environment Configuration
# ── API ─────────────────────────────────────────────────────
API_HOST=0.0.0.0
API_PORT=8000
DEBUG=false
CORS_ORIGINS=*
# ── Security ────────────────────────────────────────────────
SECRET_KEY=change-me-to-a-random-string
TOKEN_EXPIRE_HOURS=720
# ── PostgreSQL ──────────────────────────────────────────────
DATABASE_URL=postgresql+asyncpg://LogHive:LogHive@localhost:5432/LogHive
# ── Redis ───────────────────────────────────────────────────
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/1
CELERY_RESULT_BACKEND=redis://localhost:6379/2
# ── Log Retention ───────────────────────────────────────────
LOG_RETENTION_DAYS=30
LOG_COLD_STORAGE_DAYS=7
# ── Notifications (optional) ────────────────────────────────
FEISHU_WEBHOOK_URL=
DINGTALK_WEBHOOK_URL=