mirror of
https://github.com/vvbbnn00/WARP-Clash-API.git
synced 2026-07-13 21:18:20 +08:00
10 lines
589 B
Python
10 lines
589 B
Python
import os
|
|
|
|
SECRET_KEY = os.environ.get('SECRET_KEY') or None
|
|
REQUEST_RATE_LIMIT = int(os.environ.get('REQUEST_RATE_LIMIT')) if os.environ.get('REQUEST_RATE_LIMIT') else 0
|
|
RANDOM_COUNT = int(os.environ.get('RANDOM_COUNT')) if os.environ.get('RANDOM_COUNT') else 10
|
|
LOSS_THRESHOLD = int(os.environ.get('LOSS_THRESHOLD')) if os.environ.get('LOSS_THRESHOLD') else 10
|
|
DELAY_THRESHOLD = int(os.environ.get('DELAY_THRESHOLD')) if os.environ.get('DELAY_THRESHOLD') else 500
|
|
PORT = int(os.environ.get('PORT')) if os.environ.get('PORT') else 3000
|
|
HOST = os.environ.get('HOST') or '0.0.0.0'
|