44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
PYTORRENT_SECRET_KEY=change-me
|
|
PYTORRENT_DB_PATH=data/pytorrent.sqlite3
|
|
PYTORRENT_HOST=0.0.0.0
|
|
PYTORRENT_PORT=8090
|
|
PYTORRENT_DEBUG=0
|
|
PYTORRENT_POLL_INTERVAL=0.5
|
|
MIN_POLL_INTERVAL_SECONDS=0.5
|
|
PYTORRENT_WORKERS=16
|
|
PYTORRENT_GEOIP_DB=data/GeoLite2-City.mmdb
|
|
PYTORRENT_ALLOW_UNSAFE_WERKZEUG=0
|
|
PYTORRENT_SCGI_RETRIES=8
|
|
|
|
# css/js libs
|
|
PYTORRENT_USE_OFFLINE_LIBS=true
|
|
|
|
# python -m pytorrent.cli reset-password admin new_Pass
|
|
PYTORRENT_AUTH_ENABLE=false
|
|
|
|
# Reverse proxy / HTTPS
|
|
PYTORRENT_PROXY_FIX_ENABLE=false
|
|
PYTORRENT_SESSION_COOKIE_SECURE=false
|
|
# PYTORRENT_SOCKETIO_CORS_ALLOWED_ORIGINS=https://your-domain.com
|
|
|
|
# Retention / Smart Queue
|
|
PYTORRENT_TRAFFIC_HISTORY_RETENTION_DAYS=90
|
|
PYTORRENT_JOBS_RETENTION_DAYS=30
|
|
PYTORRENT_SMART_QUEUE_HISTORY_RETENTION_DAYS=30
|
|
PYTORRENT_LOG_RETENTION_DAYS=30
|
|
PYTORRENT_SMART_QUEUE_LABEL="Smart Queue"
|
|
|
|
# Smart Queue diagnostics
|
|
# none - disabled
|
|
# short - summary counters only
|
|
# debug - detailed JSONL diagnostics for start/verify/pending analysis
|
|
# full - alias for debug
|
|
PYTORRENT_SMART_QUEUE_DIAGNOSTICS=none
|
|
PYTORRENT_SMART_QUEUE_DIAGNOSTICS_MAX_ITEMS=200
|
|
|
|
# Logs
|
|
PYTORRENT_LOG_DIR=data/logs
|
|
PYTORRENT_LOG_RETENTION_HOURS=24
|
|
PYTORRENT_GUNICORN_ACCESS_LOG=data/logs/gunicorn-access.log
|
|
PYTORRENT_GUNICORN_ERROR_LOG=data/logs/gunicorn-error.log
|
|
PYTORRENT_GUNICORN_LOG_LEVEL=info |