Files
LogHive/.env.example
2026-05-09 14:55:14 +08:00

28 lines
1.4 KiB
Bash

# 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=