Files
UAV-CO2/gasflux.ini
DXC 55cb7fb025 fix(gasflux.ini): 禁止失败任务的自动清理
failed_task_cleanup_age: 60 → 315360000(10年)
janitor 每30秒扫描 + 启动时 reconcile 都会清理超过此时间的失败任务,
60秒太短,改为10年等同于禁用自动清理
2026-07-10 17:04:51 +08:00

50 lines
997 B
INI

[server]
# Server configuration
host = 0.0.0.0
port = 5001
debug = false
base_url = http://localhost:5001
[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
# 30 seconds
task_cleanup_interval = 30
# 24 hours in seconds
max_task_age = 86400
# 1 minute in seconds for successful tasks
successful_task_cleanup_age = 315360000
# 1 minute in seconds for failed tasks
failed_task_cleanup_age = 315360000
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