重构: 切换存储至SQLite,启用INI配置与API Key校验
This commit is contained in:
44
gasflux.ini
Normal file
44
gasflux.ini
Normal file
@ -0,0 +1,44 @@
|
||||
[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 = bootstrap_key_2024
|
||||
|
||||
[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
|
||||
|
||||
[database]
|
||||
# Database configuration
|
||||
path =
|
||||
|
||||
[api_keys]
|
||||
# API key persistence settings
|
||||
persist_backend = sqlite
|
||||
Reference in New Issue
Block a user