telegram-summary-bot / gunicorn.conf.py
fmab777's picture
Update gunicorn.conf.py
be8d10c verified
raw
history blame contribute delete
318 Bytes
# gunicorn.conf.py
import os
worker_class = 'uvicorn.workers.UvicornWorker'
workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
# Timeout should be longer than the longest expected API call (e.g., OpenRouter 180s)
timeout = 200 # 200 seconds
# loglevel = 'info'