ansible/roles/mailman3/files/gunicorn.conf.py
Michal Konecny a807fb3d4f [mailman3] Create gunicorn configuration file
To make changing the gunicorn configuration more easily let's move
configuration values from systemd service to separate configuration
file.

The file will live in /etc/mailman3/gunicorn.conf.py.
2025-03-27 13:01:13 +01:00

8 lines
230 B
Python

"""Configuration file for mailman gunicorn instance."""
import multiprocessing
workers = multiprocessing.cpu_count() * 2 + 1
max_requests = 50000
timeout = 1000
threads = 2 * multiprocessing.cpu_count()
forwarded_allow_ips = "*"