[uwsgi] uid = {{ mailman_user }} gid = {{ mailman_user }} #pidfile = {{ mailman_postorius_uwsgi_rundir }}/uwsgi.pid emperor = /etc/uwsgi.d #stats = {{ mailman_postorius_uwsgi_rundir }}/stats.sock chmod-socket = 660 emperor-tyrant = true cap = setgid,setuid plugins = {{ mailman_postorius_uwsgi_plugins }} # Port on which uwsgi will be listening. uwsgi-socket = 127.0.0.1:{{ mailman_postorius_http_port }} # Move to the directory wher the django files are. chdir = {{ mailman_postorius_dir }}/ # Use the wsgi file provided with the django project. wsgi-file = wsgi.py # Setup default number of processes and threads per process. master = true process = 2 threads = 2 {% if not mailman_hyperkitty_qcluster_standalone_service %} # Setup the django_q related worker processes. attach-daemon = ./manage.py qcluster {% endif %} # Setup the request log. req-logger = file:{{ mailman_postorius_log_dir }}/uwsgi.log # Log cron seperately. logger = cron file:{{ mailman_postorius_log_dir }}/uwsgi-cron.log log-route = cron uwsgi-cron {% if not mailman_hyperkitty_qcluster_standalone_service %} # Log qcluster commands seperately. logger = qcluster file:{{ mailman_postorius_log_dir }}/uwsgi-qcluster.log log-route = qcluster uwsgi-daemons {% endif %} # Last log and it logs the rest of the stuff. logger = file:{{ mailman_postorius_log_dir }}/uwsgi-error.log