重构: 切换存储至SQLite,启用INI配置与API Key校验

This commit is contained in:
2026-02-09 17:10:11 +08:00
parent d5edbc0723
commit b9828a1b13
30 changed files with 2721 additions and 612 deletions

36
gasflux.ini.example Normal file
View File

@ -0,0 +1,36 @@
[server]
# Server configuration
host = 0.0.0.0
port = 5000
debug = false
base_url = http://localhost:5000
[paths]
# Directory paths (relative to project root or absolute)
uploads = ./web_api_data/uploads
outputs = ./web_api_data/outputs
[limits]
# File size and performance limits
max_content_length = 104857600 # 100MB in bytes
[logging]
# Logging configuration
level = INFO
file = logs/gasflux_api.log
[security]
# API key and security settings
admin_bootstrap_key =
[cleanup]
# Task cleanup settings
task_cleanup_interval = 3600 # 1 hour in seconds
max_task_age = 86400 # 24 hours in seconds
janitor_dry_run = false
[performance]
# Performance tuning
threads = 8
connection_limit = 100
channel_timeout = 300