-
Notifications
You must be signed in to change notification settings - Fork 3
/
uwsgi.ini
54 lines (54 loc) · 1.01 KB
/
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
54
[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 = 4
endif =
if-not-env = UWSGI_THREADS
threads = 25
endif =
if-not-env = UWSGI_RELOAD_ON_RSS
reload-on-rss = 135
endif =
if-not-env = UWSGI_MAX_REQUESTS
max-requests = 12500
endif =
die-on-term = true
wsgi-file = main/wsgi.py
pidfile=/tmp/ocw_studio-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_HARAKIRI
harakiri = 60
endif =
if-not-env = UWSGI_BUFFER_SIZE
buffer-size = 65535
endif =
if-not-env = UWSGI_POST_BUFFERING
post-buffering = 65535
endif =
stats = /tmp/uwsgi-stats.sock