-
Notifications
You must be signed in to change notification settings - Fork 2
/
development.ini
109 lines (83 loc) · 2.06 KB
/
development.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[app:main]
use = egg:piano
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
pyramid.includes =
pyramid_beaker
pyramid_debugtoolbar
# Database configuration
#--------------------------------
mongodb.url = mongodb://localhost
# Template Configuration
#--------------------------------
mako.strict_undefined = true
mako.module_directory = %(here)s/data/mako
mako.imports =
from piano.lib import helpers as h
from piano.lib import rest as rest
# Session Configuration
#--------------------------------
session.type = file
session.data_dir = %(here)s/data/sessions/data
session.lock_dir = %(here)s/data/sessions/lock
session.key = mykey
session.secret = mysecret
session.cookie_on_exception = true
# Cache Configuration
#--------------------------------
cache.regions = default_term, hourly, daily
cache.data_dir = %(here)s/data/cache/data
cache.lock_dir = %(here)s/data/cache/lock
cache.default_term.expire = 300
cache.default_term.type = memory
cache.hourly.expire = 3600
cache.hourly.type = memory
cache.daily.expire = 86400
cache.daily.type = file
# Server Configuration
#--------------------------------
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 8080
# Logging Configuration
#--------------------------------
[formatters]
keys = simple, detailed
[handlers]
keys = console, file
[loggers]
keys = root, all, piano, sample
[formatter_simple]
format = %(levelname)-5.5s [%(name)s] %(message)s
[formatter_detailed]
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
[handler_console]
level = NOTSET
class = StreamHandler
formatter = simple
args = (sys.stderr,)
[handler_file]
level = NOTSET
class = FileHandler
formatter = detailed
args = ('logs/application.log', 'w')
[logger_root]
level = INFO
handlers = console
[logger_all]
level = DEBUG
handlers = file
qualname =
[logger_piano]
level = DEBUG
handlers = console
qualname = piano
[logger_sample]
level = DEBUG
handlers = console
qualname = sample