-
Notifications
You must be signed in to change notification settings - Fork 2
/
api.ini
45 lines (38 loc) · 1.23 KB
/
api.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[uwsgi]
procname = uwsgi_%n
die-on-term = 1
lazy-apps = 1
vacuum = 1
master = true
processes = 2
enable-threads = true
threads = 10
chdir = %d
virtualenv = %d/venv
module = mtp_%n.wsgi:application
http = :8080
uid = mtp
gid = mtp
chmod-socket = 666
chown-socket = mtp
no-defer-accept = 1
post-buffering = 1
buffer-size = 12288
http-timeout = 300
http-keepalive = 60
http-auto-chunked = 1
add-header = Connection: keep-alive
stats = 127.0.0.1:1717
# read stats with `uwsgitop` or `uwsgi --connect-and-read 127.0.0.1:1717`
log-x-forwarded-for = 1
log-zero = 1
log-ioerror = 1
# format uWSGI logs as JSON for ELK
# log-format = {"timestamp": "%(ltime)", "timestamp_msec": %(tmsecs), "@fields.logger": "uWSGI-Request", "@fields.http_host": "%(host)", "@fields.request_uri": "%(uri)", "@fields.request_method": "%(method)", "@fields.status": %(status), "@fields.response_time": %(micros)}
spooler = %d/spooler
spooler-chdir = %d
spooler-import = mtp_%n/tasks.py
cron = 0 3 -1 -1 -1 %d/venv/bin/python %d/manage.py clean_up
cron = 10 8 -1 -1 1 %d/venv/bin/python %d/manage.py check_notify_templates --verbosity 2
cron = -1 -1 -1 -1 -1 %d/venv/bin/python %d/manage.py run_scheduled_commands
# attach-daemon = %d/venv/bin/python %d/manage.py load_data_listener