-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwsgi.ini
43 lines (35 loc) · 1.12 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
[uwsgi]
master = true
no-orphans = true
vacuum = true
auto-procname = true
strict = true
need-app = true
# Prefix log statements with date formatted in common log format:
log-date = [%%d/%%b/%%Y:%%H:%%M:%%S %%z]
log-x-forwarded-for = true
req-logger = file:$(HOME)/logs/rapidpro_for_health.access.log
# Default will log to stderr. Uncomment to log to file
# logger = file:$(HOME)/logs/ppfa.error.log
module = rh.wsgi:application
processes = 2
offload-threads = 2
thunder-lock = true
static-map = /media=/app/rh/.data/uploads
static-expires-path-info = /static 86400
max-requests = 5000
# Serve docs with some extra trickery to make sure relative links work
# on `/build-docs` and `/build-docs/styleguide` because routes don't work with
# static-map paths.
##route = ^/docs(/styleguide)?/?$ redirect:/docs$1/index.html
# %d = directory which contains this config file
##route = ^/docs/(?!styleguide$)(.*) static:%dbuild-docs/$1$2
procname-prefix-spaced = rapidpro_for_health:
http-socket = :$(PORT)
stats = :1717
post-buffering = 4096
buffer-size = 8196
harakiri = 30
enable-threads = True
# Stop the process on SIGTERM
die-on-term = true