-
Notifications
You must be signed in to change notification settings - Fork 5
/
uwsgi.ini
52 lines (48 loc) · 1.04 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
[uwsgi]
;------------
; For debug
;------------
py-autoreload = 3
honour-stdin = true
;-----------------------
; Process configuration
;-----------------------
master = true
die-on-term = true
single-interpreter = true
enable-threads = true
thunder-lock = true
vacuum = true
workers = 4
threads = 1
offload-threads = 2
no-orphans = true
; https://github.com/unbit/uwsgi/issues/2299#issuecomment-812837438
max-fd = 1024
; max-requests = 5000
;-----------------------
; Project configuration
;-----------------------
need-app = true
chdir = %d
wsgi-file = %(chdir)venelin/wsgi.py
touch-reload = %(wsgi-file)
touch-reload = %p
procname=%c uWSGI server
static-safe = %(chdir)www/
static-map = /static=%(chdir)www/static
static-map = /media=%(chdir)www/media
;-----------------
; Damonizing
;-----------------
;pidfile = %(chdir)%c.pid
;socket = %(chdir)%c.sock
; If server and uwsgi workers are in the same group this can be 660
;chmod-socket = 666
;-------------
; Extra
;--------------
threaded-logger = true
;req-logger = file:/dev/null
; User ID
;uid = www-data