mailman-uwsgi.ini (1941B)
1 [uwsgi] 2 # Port on which uwsgi will be listening. 3 uwsgi-socket = 0.0.0.0:8080 4 http-socket = 0.0.0.0:8000 5 6 # Enable threading for python 7 enable-threads = true 8 9 buffer-size = 32768 10 listen = 1000 # Socket backlog 11 socket-timeout = 30 12 http-timeout = 30 13 14 # Move to the directory where the django files are. 15 chdir = /opt/mailman-web 16 17 # Use the wsgi file provided with the django project. 18 wsgi-file = wsgi.py 19 20 # Setup default number of processes and threads per process. 21 master = true 22 processes = 4 23 threads = 4 24 lazy-apps = true 25 thunder-lock = true 26 27 # Memory and connection management 28 max-requests = 1000 # Restart workers after 1000 requests 29 max-requests-delta = 100 30 harakiri = 60 # Kill requests taking longer than 60s 31 harakiri-verbose = true 32 reload-on-rss = 512 # Restart if worker uses >512MB RAM 33 34 # Drop privileges and don't run as root. 35 uid = mailman 36 gid = mailman 37 38 # Setup the django_q related worker processes. 39 attach-daemon = ./manage.py qcluster 40 41 # Setup hyperkitty's cron jobs. 42 # 'minutely' jobs are run hourly for perf reasons. 43 # See https://github.com/maxking/docker-mailman/issues/327 44 unique-cron = 0 -1 -1 -1 -1 ./manage.py runjobs minutely 45 unique-cron = -15 -1 -1 -1 -1 ./manage.py runjobs quarter_hourly 46 unique-cron = 0 -1 -1 -1 -1 ./manage.py runjobs hourly 47 unique-cron = 0 0 -1 -1 -1 ./manage.py runjobs daily 48 unique-cron = 0 0 1 -1 -1 ./manage.py runjobs monthly 49 unique-cron = 0 0 -1 -1 0 ./manage.py runjobs weekly 50 unique-cron = 0 0 1 1 -1 ./manage.py runjobs yearly 51 52 # Setup the request log. 53 req-logger = file:/opt/mailman-web-data/logs/uwsgi.log 54 55 # Log cron seperately. 56 logger = cron file:/opt/mailman-web-data/logs/uwsgi-cron.log 57 log-route = cron uwsgi-cron 58 59 # Log qcluster commands seperately. 60 logger = qcluster file:/opt/mailman-web-data/logs/uwsgi-qcluster.log 61 log-route = qcluster uwsgi-daemons 62 63 # Last log and it logs the rest of the stuff. 64 logger = file:/opt/mailman-web-data/logs/uwsgi-error.log