-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuwsgi-django.ini
51 lines (39 loc) · 1017 Bytes
/
uwsgi-django.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
;suppress inspection "DuplicateKeyInSection" for whole file
[uwsgi]
strict = True
plugins = corerouter
plugins = cheaper_busyness
need-plugins = python3
uwsgi-socket = [::]:8001
;stats = :5050
;stats-http = True
; If VIRTAL_ENV is set then use its value to specify the virtualenv directory
if-env = VIRTUAL_ENV
virtualenv = %(_)
endif =
chdir = %d
module = labmgr.wsgi:application
need-app = True
# Prepare the environment and database
hook-asap = exec:mkdir -p %(chdir)/spool
hook-pre-app = exec:./manage.py migrate
hook-pre-app = exec:./manage.py collectstatic --no-input
worker-reload-mercy = 5
master = True
enable-threads = True
die-on-term = True
vacuum = True
thunder-lock = True
cheaper-algo = busyness
cheaper = 10
workers = 32
cache2 = name=default,items=100
spooler = %(chdir)/spool
spooler-processes = 1
spooler-max-tasks = 50
spooler-ordered = True
spooler-frequency = 5
mule = lab.mules.sync_projects:run
mule = lab.mules.listen_state:run
mule = lab.mules.telnet_relay:run
py-autoreload = 3