-
Notifications
You must be signed in to change notification settings - Fork 3
/
uwsgi.ini
56 lines (43 loc) · 979 Bytes
/
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
[uwsgi]
if-not-env = PORT
http-socket = :8080
socket = :8081
endif =
master = true
buffer-size = 262144
# Cope with occasional very long headers:
response-headers-limit = 262144
die-on-term = true
#route-run = fixpathinfo:
if-env = VIRTUAL_ENV
venv = $(VIRTUAL_ENV)
endif =
if-env = DEBUG
env = $(DEBUG)
endif =
# Depth of request queue:
listen = 128
# Number of processes and threads
processes = 10
gevent = 200
# Rotate workers every X requests:
max-requests = 100
# Rotate workers every 5m:
max-worker-lifetime = 300
# Cope with very long/slow downloads:
socket-timeout = 300
if-not-env = UKWA_INDEX
# local paths to cdx and warc data
env = UKWA_INDEX=./integration-test/test-data/
endif =
if-not-env = UKWA_ARCHIVE
env = UKWA_ARCHIVE=./integration-test/test-data/
endif =
# Must the terms be accepted first?
if-env = MUST_AGREE_TO_TERMS
route-run = addvar:MUST_AGREE_TO_TERMS=true
endif =
# Force UTF-8
env = LANG=C.UTF-8
# Declare the app
wsgi = ukwa_pywb.wsgi