pyfedi/gunicorn.conf.py

20 lines
309 B
Python
Raw Permalink Normal View History

2025-01-22 13:11:47 -08:00
import multiprocessing
2024-02-07 11:39:08 -08:00
2025-01-22 13:11:47 -08:00
workers = multiprocessing.cpu_count() * 2 + 1
threads = multiprocessing.cpu_count() * 2 + 1
2024-02-07 11:39:08 -08:00
worker_tmp_dir = '/dev/shm'
2024-06-13 17:08:28 -07:00
bind = '0.0.0.0:5000'
2024-02-07 11:39:08 -08:00
umask = 0o007
reload = False
2025-01-22 13:11:47 -08:00
worker_class = 'gthread'
2025-01-18 19:01:03 -08:00
2024-02-07 11:39:08 -08:00
#logging
accesslog = '-'
errorlog = '-'
2025-01-20 22:51:11 -08:00
max_requests = 500
2024-02-07 11:39:08 -08:00
max_requests_jitter = 50