-
Notifications
You must be signed in to change notification settings - Fork 1
/
uwsgi.ini
56 lines (56 loc) · 1.06 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
55
56
[uwsgi]
strict = true
need-app = true
auto-procname = true
if-env = DEV_ENV
socket = :$(PORT)
endif =
if-not-env = DEV_ENV
socket = :$(PORT)
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 = odl_video/wsgi.py
pidfile=/tmp/odl_video.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 = 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 =
if-not-env = UWSGI_MAX_REQUESTS
max-requests = 1000
endif =
if-not-env = UWSGI_MAX_WORKER_LIFETIME
max-worker-lifetime = 3600
endif =