forked from kobotoolbox/kpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwsgi.ini
30 lines (22 loc) · 982 Bytes
/
uwsgi.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
[uwsgi]
# directory structure
chdir = $(KPI_SRC_DIR)
logto = $(KPI_LOGS_DIR)/uwsgi.log
# Run the application at a non-root URL path, e.g. http://hostname/KPI_PREFIX.
# See http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#hosting-multiple-apps-in-the-same-process-aka-managing-script-name-and-path-info
# This supersedes `wsgi-file = $(KPI_SRC_DIR)/kobo_playground/wsgi.py`.
manage-script-name = true
mount = $(KPI_PREFIX)=$(KPI_SRC_DIR)/kobo_playground/wsgi.py
# process related settings
master = true
processes = 2
# Manage Celery.
smart-attach-daemon = /tmp/celery.pid celery -A kobo_playground worker --beat --loglevel=info --logfile $(KPI_LOGS_DIR)/celery.log --pidfile=/tmp/celery.pid
socket = 0.0.0.0:8000
#http-socket = 0.0.0.0:8000
buffer-size = 32768
#uid = wsgi
#gid = wsgi
die-on-term = true
# uWSGI does not pass locale information to the application by default
env = LC_ALL=en_US.UTF-8