pyfedi/gunicorn.conf.py
2025-01-23 10:11:47 +13:00

19 lines
309 B
Python

import multiprocessing
workers = multiprocessing.cpu_count() * 2 + 1
threads = multiprocessing.cpu_count() * 2 + 1
worker_tmp_dir = '/dev/shm'
bind = '0.0.0.0:5000'
umask = 0o007
reload = False
worker_class = 'gthread'
#logging
accesslog = '-'
errorlog = '-'
max_requests = 500
max_requests_jitter = 50