增加web_api
This commit is contained in:
30
env.example
Normal file
30
env.example
Normal 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
|
||||
Reference in New Issue
Block a user