# KKS Badge Management System - Environment Configuration # Copy to .env and customize values as needed # Database (default: SQLite in project root) # DATABASE_URL=sqlite+aiosqlite:///path/to/badge_admin.db # DATABASE_URL=postgresql+asyncpg://user:password@localhost/badge_admin # Server ports # TCP_PORT=5000 # API_PORT=8088 # Debug mode (default: false) # DEBUG=true # API authentication (uncomment to enable, all /api/ endpoints require X-API-Key header) # API_KEY=your-secret-api-key-here # CORS origins (comma-separated, * = allow all) # CORS_ORIGINS=https://example.com,https://admin.example.com # Rate limiting (format: "count/period", period = second/minute/hour/day) # RATE_LIMIT_DEFAULT=60/minute # RATE_LIMIT_WRITE=30/minute # Track query max points (default: 10000) # TRACK_MAX_POINTS=10000 # 高德地图 API # Web服务 key (逆地理编码 + v5 IoT定位, 企业订阅) # AMAP_KEY=your_amap_web_service_key # AMAP_SECRET=your_amap_web_service_secret # 智能硬件定位 key (旧版 apilocate.amap.com 回退, 可选) # AMAP_HARDWARE_KEY=your_amap_hardware_key # AMAP_HARDWARE_SECRET=your_amap_hardware_secret # Geocoding cache size # GEOCODING_CACHE_SIZE=10000