refactor deployment config and exchange integrations
Simplify runtime configuration and remove legacy database and settings surface so new installs are easier to operate. Refresh deployment assets, docs, and order execution behavior to keep the packaged app aligned with the current backend. Made-with: Cursor
This commit is contained in:
@@ -65,12 +65,6 @@ class MetaConfig(type):
|
||||
|
||||
# ==================== 安全配置 ====================
|
||||
|
||||
@property
|
||||
def CORS_ORIGINS(cls):
|
||||
from app.utils.config_loader import load_addon_config
|
||||
val = load_addon_config().get('app', {}).get('cors_origins')
|
||||
return val if val else os.getenv('CORS_ORIGINS', '*')
|
||||
|
||||
@property
|
||||
def RATE_LIMIT(cls):
|
||||
from app.utils.config_loader import load_addon_config
|
||||
@@ -95,15 +89,6 @@ class MetaConfig(type):
|
||||
return bool(val)
|
||||
return os.getenv('ENABLE_REQUEST_LOG', 'True').lower() == 'true'
|
||||
|
||||
@property
|
||||
def ENABLE_AI_ANALYSIS(cls):
|
||||
from app.utils.config_loader import load_addon_config
|
||||
val = load_addon_config().get('app', {}).get('enable_ai_analysis')
|
||||
if val is not None:
|
||||
return bool(val)
|
||||
return os.getenv('ENABLE_AI_ANALYSIS', 'True').lower() == 'true'
|
||||
|
||||
|
||||
class Config(metaclass=MetaConfig):
|
||||
"""应用配置类"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user