-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.ini
131 lines (105 loc) · 2.69 KB
/
template.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[app:aybu-controlpanel]
use = egg:aybu-controlpanel
# development and debugging
# SET EVERYTHING TO FALSE IN PRODUCTION
debug_authorization = false
debug_notfound = false
debug_routematch = false
debug_templates = false
reload_templates = false
reload_assets = false
debug = false
sqlalchemy.url = sqlite:///
sqlalchemy.echo = false
# session
session.type = file
session.data_dir = %(here)s/data/sessions/data
session.lock_dir = %(here)s/data/sessions/lock
session.key = aybu
session.secret = change_the_secret
session.cookie_on_exception = true
# instance
instance = Fill me with instance package name
# data
default_data = data/default_data.json
default_user.username = Fill me with username!
default_user.password = Fill me with password!
default_locale_name = it
# tweens
pyramid.includes = pyramid_debugtoolbar
pyramid.includes = pyramid_exclog
debugtoolbar.enabled = false
debugtoolbar.intercept_redirects = false
# pyramid_mailer
# see https://docs.pylonsproject.org/projects/pyramid_mailer/dev/
mail.host = localhost
mail.port = 25
# templating
mako.strict_undefined = true
# mako.module_directory = --> if omitted then memory
# enabled remote login on manager api.
# If unset local database will be used to handle login
# remote_login_url = https://api.aybu.it/users
[alembic]
script_location = /path/to/aybu/core/models/migrations
sqlalchemy.url = sqlite:///
sqlalchemy.echo = false
[pshell]
setup = aybu.core.utils.pshell.setup
[pipeline:main]
# add egg:WebError#evalerror to the pipeline for debugging
pipeline =
aybu-controlpanel
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 6543
[loggers]
keys = root, aybu, exc_logger, pufferfish, sqlalchemy, alembic
[handlers]
keys = console, exc_handler
[formatters]
keys = generic, exc_formatter
[logger_root]
level = WARN
handlers = console
[logger_aybu]
level = WARN
handlers =
qualname = aybu
[logger_pufferfish]
level = WARN
handlers =
qualname = pufferfish
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_exc_logger]
level = ERROR
handlers = exc_handler
qualname = exc_logger
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_exc_handler]
class = NullHandler
args = ()
# to log exceptions via email:
# class = handlers.SMTPHandler
# args = (('localhost', 25), '[email protected]', ['[email protected]'], 'myapp Exception')
# to log exceptions on file:
# class = FileHandler
# args = ('%(here)s/exception.log',)
level = ERROR
formatter = exc_formatter
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
[formatter_exc_formatter]
format = %(asctime)s %(message)s