forked from websauna/websauna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.ini
159 lines (126 loc) · 3.94 KB
/
base.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
###
[app:main]
use = egg:websauna
websauna.init = websauna.system.Initializer
websauna.user_models_module = websauna.system.user.models
# To which page users are redirected after log in
horus.login_redirect = home
horus.logout_redirect = login
horus.register_redirect = waiting_for_activation
horus.activate_redirect = registration_complete
horus.allow_email_auth = true
horus.forgot_password_redirect = home
horus.reset_password_redirect = login
# This id is used as a prefix when storing data e.g. for
# scheduled jobs in Redis. Pick alphanumeric non-conflicting name.
websauna.site_id = websauna_example
websauna.site_name = Websauna Example Site
websauna.site_tag_line = Your site goes here
websauna.site_url = http://localhost:6543
websauna.site_author = Mikko Ohtamaa
websauna.site_email_prefix = [Websauna]
websauna.cachebust = false
# Max age for static view caching. Set to empty string if no caching
websauna.cache_max_age =
#
# Devops related
#
# This backup script will be run daily to backup the site.
# Leave empty and no backup is run.
# This is in the format of Pyramid asset specification.
websauna.backup_script =
# How many seconds the backup script is allowed to run before the termination
websauna.backup_timeout = 12000
#
# Default Pyramid core and extension settings
#
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = en
pyramid_notebook.notebook_folder = /tmp/pyramid_notebook
pyramid_notebook.kill_timeout = 1800
jinja2.filters =
model_url = pyramid_jinja2.filters:model_url_filter
route_url = pyramid_jinja2.filters:route_url_filter
static_url = pyramid_jinja2.filters:static_url_filter
admin_breadcrumbs = websauna.system.admin.filters:admin_breadcrumbs
jinja2.extensions =
jinja2.ext.i18n
jinja2.ext.with_
jinja2.trim_blocks = true
# We log all emails to console anyway
mail.default_sender = no-reply@example.com
websauna.mailer = websauna.system.mail.mailer.StdoutMailer
# Supported Authomatic logins, list of section names in secrets
websauna.social_logins =
# Where do we read secret variables
websauna.secrets_file = secrets.ini
websauna.superusers =
user-1
# Redis session uses first Redis database on localhost
redis.sessions.url = redis://localhost:6379/1
redis.sessions.prefix = websauna_session
# redis.sessions.content_type_whitelist = text/html
#
# Alembic SQL migrations
#
# https://alembic.readthedocs.org/en/latest/tutorial.html#creating-an-environment
#
[alembic]
# path to migration scripts
script_location = alembic
#
# Scheduling related
#
[celery]
BROKER_URL = redis://localhost:6379/3
CELERY_IMPORTS =
websauna.system.devop.tasks
[loggers]
keys = root, celery_worker_job, colander, notebook, authomatic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = DEBUG
handlers = console
[handler_console]
class = rainbow_logging_handler.RainbowLoggingHandler
# class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# This is the crucial bit to make sure Celery doesn't silently swallow exceptions
# See https://github.com/celery/celery/issues/2437
# http://stackoverflow.com/a/20719461/315168
[logger_celery_worker_job]
level = WARN
handlers =
qualname = celery.worker.job
propagate = 1
# Disable verbose debug info from forms
[logger_colander]
level = INFO
qualname = websauna.system.form.colander
handlers =
[logger_notebook]
level = WARN
qualname = pyramid_notebook
handlers =
# Authomatic spews a lot of INFO level messages when you do a facebook login. Each logger gets by it auth provider ("facebook", "twitter", etc.)
[logger_authomatic]
level = WARN
qualname = authomatic
handlers =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy