telegram-summary-bot / gunicorn.conf.py
fmab777's picture
Update gunicorn.conf.py
afee9b9 verified
raw
history blame
280 Bytes
# gunicorn.conf.py
import os
worker_class = 'uvicorn.workers.UvicornWorker'
# Can set back to 2 or more if desired, now that init is in lifespan
workers = int(os.environ.get('GUNICORN_WORKERS', '1'))
bind = f"0.0.0.0:{os.environ.get('PORT', '7860')}"
# timeout = 120 # Optional