-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuwsgi.ini
More file actions
46 lines (40 loc) · 1.14 KB
/
uwsgi.ini
File metadata and controls
46 lines (40 loc) · 1.14 KB
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
[uwsgi]
; Telling uwsgi to parse uwsgi.ini file in strict mode.
strict = true
; Getting request from heroku provided port.
http-socket = :$(PORT)
; Enabling master process which takes care of workers.
master = true
; Reporting memory usage to logs for debugging.
; memory-report = true
; Disabling Logs.
disable-logging = true
; Logging only errors.
log-4xx = true
log-5xx = true
; Mapping static files of app to uwsgi, to get a better performance.
static-map = /static=npysec/static
; Setting expiration for static files (days in secs).
static-expires = /* 2592000
; Maximum workers.
processes = 8
; Enabling threading support for python.
enable-threads = true
; Spawning threads for each workers.
threads = 2
; Serializing app behavior.
thunder-lock = true
; Drop inheritance on spawning worker.
close-on-exec = true
; Free up socket / generated file on dying.
vacuum = true
; Exit uwsgi when receiving SIGTERM.
die-on-term = true
; Loading app.
module = npysec:create_app()
; Load app in worker instead of master.
lazy-apps = true
; Drop request after specified seconds.
harakiri = 60
; Reload workers after specified seconds.
max-worker-lifetime = 3600