增加web_api

This commit is contained in:
2026-02-05 15:13:54 +08:00
parent 443ec09c5c
commit d5edbc0723
43 changed files with 7036 additions and 2640 deletions

30
env.example Normal file
View File

@ -0,0 +1,30 @@
# GasFlux Web API - Environment Variables Example
# Copy this file to your environment and modify as needed
# Server Configuration
GASFLUX_HOST=0.0.0.0
GASFLUX_PORT=5000
GASFLUX_DEBUG=false
# Directory Configuration
GASFLUX_UPLOAD_FOLDER=web_api_data/uploads
GASFLUX_OUTPUT_FOLDER=web_api_data/outputs
# File Size Limits (in bytes)
GASFLUX_MAX_CONTENT_LENGTH=104857600 # 100MB
# Logging Configuration
GASFLUX_LOG_LEVEL=INFO
GASFLUX_LOG_FILE=logs/gasflux_api.log
# CORS Configuration
GASFLUX_CORS_ORIGINS=*
# Task Management
GASFLUX_TASK_CLEANUP_INTERVAL=3600 # 1 hour
GASFLUX_MAX_TASK_AGE=86400 # 24 hours
# Performance Tuning
GASFLUX_THREADS=8
GASFLUX_CONNECTION_LIMIT=100
GASFLUX_CHANNEL_TIMEOUT=300