-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
37 lines (28 loc) · 711 Bytes
/
settings.py
File metadata and controls
37 lines (28 loc) · 711 Bytes
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
listen_addresses = [
('', 80),
]
backend_address = ('localhost', 8080)
max_memory = 64*1024*1024
max_cache_content_length = 1*1024*1024
max_cache_age = 300
cache_refresh = 5
cache_refresh_rate = 20
compression_threads = 2
compress_content = [
'text/.*(?:;.*)?',
'application/javascript(?:;.*)?',
]
error_codes = {
'bad gateway': (502, 'Bad Gateway', 'Bad Gateway'),
}
# if this is set to True the process will background itself at start up
daemonise = False
# security settings
chroot = None # or a directory (string)
chuid = None # or a user name (string)
chgrp = None # or a group name (string)
# load local_settings
try:
from local_settings import *
except ImportError:
pass