Files
Luminary/configs/config.example.yaml
T
renjue 7ab3bd9eff Move runtime configuration to admin UI and database.
Remove config-file validation that blocked startup; settings are stored in SQLite and editable from the system settings page, with optional legacy yaml import on first boot.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 16:32:35 +08:00

32 lines
878 B
YAML

# 已废弃:Luminary 不再依赖配置文件启动,请在管理台「系统设置」维护参数。
# 本文件仅用于从旧版部署首次迁移时自动导入(若存在且数据库尚无 system_settings 记录)。
server:
addr: ":8293"
database:
path: "./data/luminary.db"
admin:
username: "admin"
password: "admin123"
cache:
usage_flush_interval: 5s
health_check:
interval: 30s
security:
# 生产环境必须修改;容器首次启动会自动生成随机密钥
# 也可通过环境变量覆盖:encryption_key: "env.LUMINARY_ENCRYPTION_KEY"
encryption_key: "change-me-in-production-32bytes!!"
session_ttl: 24h
login_max_attempts: 5
login_lockout: 15m
# 仅当直连来源为以下 IP/CIDR 时才信任 X-Forwarded-For / X-Real-IP(反代部署时配置)
trusted_proxies: []
gateway:
max_retries: 3
retry_backoff_ms: 200