Files
UAV-CO2/gasflux.ini
DXC 9898b68410 refactor(download): 移除下载后自动删除逻辑,保留手动删除接口
1. download.py:
   - 完全移除 _mark_task_downloaded() 函数(原功能:下载后设置 delete_after_at
     触发 janitor 到期自动清理文件)
   - 改为仅记录 downloaded_at 时间戳,不再调度自动删除
   - 手动 DELETE /task/<id> 接口不受影响(tasks.py:151-211)

2. gasflux.ini:
   - successful_task_cleanup_age: 60 → 315360000(10年)
     彻底禁止 janitor 的下载后自动清理行为
2026-07-10 16:20:49 +08:00

50 lines
990 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 = 60
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