-
Notifications
You must be signed in to change notification settings - Fork 2
/
uwsgi.ini
64 lines (64 loc) · 1.27 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
57
58
59
60
61
62
63
64
[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 = main/wsgi.py
pidfile=/tmp/bootcamp-mast.pid
vacuum=True
enable-threads = true
single-interpreter = true
offload-threads = 2
thunder-lock =
if-env = HTTP_AUTH_CREDENTIALS
plugins = python,router_basicauth
route = ^/api/v\d+/order_fulfillment/? continue:
route = ^/.* basicauth:Bootcamp,%(_)
endif =
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 =
if-not-env = UWSGI_MAX_REQUESTS
max-requests = 1000
endif =
if-not-env = UWSGI_MAX_WORKER_LIFETIME
max-worker-lifetime = 3600
endif =