Backend (Django 4.2 + DRF): - Admin auth with SimpleJWT - Volcengine API client with HMAC-SHA256 signing - IAM user management (create/sync/import/disable/enable) - Billing query with pagination - Feishu webhook notifications (async) - APScheduler for periodic spending checks - AES-256 encrypted credential storage - API key auth for external system integration Frontend (Vue 3 + Element Plus): - Login page - Dashboard with stats overview - IAM user list with per-user threshold config - Billing view with spending progress bars - Alert history with type filtering - Settings page for global config and Volcengine account management Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# ===========================================
|
||
# AirGate 环境变量配置模板
|
||
# 复制此文件为 .env 并填入真实值
|
||
# ===========================================
|
||
|
||
# Django 基础配置
|
||
DJANGO_SECRET_KEY=change-me-to-a-random-string
|
||
DJANGO_DEBUG=True
|
||
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
|
||
|
||
# 数据库(本地开发不需要配置,默认用 SQLite)
|
||
# USE_MYSQL=false
|
||
# DB_HOST=
|
||
# DB_PORT=3306
|
||
# DB_NAME=airgate
|
||
# DB_USER=
|
||
# DB_PASSWORD=
|
||
|
||
# 火山引擎主账号密钥(必填,用于管理 IAM 子账号)
|
||
VOLC_ACCESS_KEY=
|
||
VOLC_SECRET_KEY=
|
||
|
||
# 数据加密密钥(用于加密存储在数据库中的密钥)
|
||
# 生成方式: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
||
AIRGATE_ENCRYPTION_KEY=
|
||
|
||
# 飞书机器人 Webhook(选填,也可在管理界面中配置)
|
||
FEISHU_WEBHOOK_URL=
|
||
|
||
# AirGate API Key(供外部系统如 AirDrama 调用本系统 API 时使用)
|
||
AIRGATE_API_KEY=change-me-to-a-random-api-key
|
||
|
||
# 消费监控检查间隔(秒,默认 3600 = 1小时)
|
||
MONITOR_INTERVAL=3600
|