-
Notifications
You must be signed in to change notification settings - Fork 29
/
config.py.in
58 lines (52 loc) · 1.59 KB
/
config.py.in
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
import os
# Server Specific Configurations
server = {
'port': os.environ.get('PULPITO_SERVER_PORT', '8081'),
'host': os.environ.get('PULPITO_SERVER_HOST', '0.0.0.0')
}
# In the ceph-cm-ansible pulpito role the setup_pulpito task
# replaces last occurance of 'paddles_address' assignment
# using regex, that is why it should be one line expression.
paddles_address = 'http://sentry.front.sepia.ceph.com:8080'
paddles_address = os.environ.get('PULPITO_PADDLES_ADDRESS', paddles_address)
# Pecan Application Configurations
app = {
'root': 'pulpito.controllers.root.RootController',
'modules': ['pulpito'],
'static_root': '%(confdir)s/public',
'template_path': '%(confdir)s/pulpito/templates',
'default_renderer': 'jinja',
'guess_content_type_from_ext': False,
'debug': True,
'errors': {
404: '/error/404',
'__force_dict__': True
}
}
logging = {
'loggers': {
'root': {'level': 'INFO', 'handlers': ['console']},
'pulpito': {'level': 'DEBUG', 'handlers': ['console']},
'py.warnings': {'handlers': ['console']},
'__force_dict__': True
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'simple'
}
},
'formatters': {
'simple': {
'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
'[%(threadName)s] %(message)s')
}
}
}
# Custom Configurations must be in Python dictionary format::
#
# foo = {'bar':'baz'}
#
# All configurations are accessible at::
# pecan.conf