-
Notifications
You must be signed in to change notification settings - Fork 2
/
uwsgi.ini
53 lines (53 loc) · 1012 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[uwsgi]
strict = true
need-app = true
auto-procname = true
if-env = DEV_ENV
socket = :$(PORT)
endif =
if-not-env = DEV_ENV
socket = /tmp/nginx.socket
disable-logging = true
log-4xx = true
log-5xx = true
endif =
hook-accepting1 = exec:touch /tmp/app-initialized
master = true
if-not-env = UWSGI_PROCESSES
processes = 2
endif =
if-not-env = UWSGI_THREADS
threads = 100
endif =
die-on-term = true
wsgi-file = mitxpro/wsgi.py
pidfile=/tmp/mitxpro-mast.pid
vacuum=True
enable-threads = true
single-interpreter = true
offload-threads = 2
thunder-lock =
if-env = DEV_ENV
python-autoreload = 1
endif =
if-not-env = DEV_ENV
memory-report = true
endif =
if-not-env = UWSGI_SOCKET_TIMEOUT
socket-timeout = 3
endif =
if-not-env = UWSGI_RELOAD_ON_RSS
reload-on-rss = 200
endif =
if-not-env = UWSGI_WORKER_RELOAD_MERCY
worker-reload-mercy = 60
endif =
if-not-env = UWSGI_HARAKIRI
harakiri = 60
endif =
if-not-env = UWSGI_BUFFER_SIZE
buffer-size = 65535
endif =
if-not-env = UWSGI_POST_BUFFERING
post-buffering = 65535
endif =