44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
|
[uwsgi]
|
||
|
uid = {{ mailman_user }}
|
||
|
gid = {{ mailman_user }}
|
||
|
#pidfile = /run/uwsgi/uwsgi.pid
|
||
|
emperor = /etc/uwsgi.d
|
||
|
#stats = /run/uwsgi/stats.sock
|
||
|
chmod-socket = 660
|
||
|
emperor-tyrant = true
|
||
|
cap = setgid,setuid
|
||
|
plugins = {{ mailman_postorious_uwsgi_plugins }}
|
||
|
#plugins = systemd_logger,python36
|
||
|
|
||
|
# Port on which uwsgi will be listening.
|
||
|
uwsgi-socket = 127.0.0.1:{{ mailman_postorious_http_port }}
|
||
|
|
||
|
# Move to the directory wher the django files are.
|
||
|
chdir = {{ mailman_postorious_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
|
||
|
|
||
|
# Setup the django_q related worker processes.
|
||
|
attach-daemon = ./manage.py qcluster
|
||
|
|
||
|
# Setup the request log.
|
||
|
req-logger = file:{{ mailman_postorious_log_dir }}/uwsgi.log
|
||
|
|
||
|
# Log cron seperately.
|
||
|
logger = cron file:{{ mailman_postorious_log_dir }}/uwsgi-cron.log
|
||
|
log-route = cron uwsgi-cron
|
||
|
|
||
|
# Log qcluster commands seperately.
|
||
|
logger = qcluster file:{{ mailman_postorious_log_dir }}/uwsgi-qcluster.log
|
||
|
log-route = qcluster uwsgi-daemons
|
||
|
|
||
|
# Last log and it logs the rest of the stuff.
|
||
|
logger = file:{{ mailman_postorious_log_dir }}/uwsgi-error.log
|
||
|
|