-
Notifications
You must be signed in to change notification settings - Fork 5
/
testing.ini
187 lines (145 loc) · 4.13 KB
/
testing.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[app:appenlight]
use = egg:appenlight
reload_templates = true
debug_authorization = true
debug_notfound = true
debug_routematch = true
debug_templates = true
default_locale_name = en
sqlalchemy.url = postgresql://test:test@localhost/appenlight_test
sqlalchemy.pool_size = 2
sqlalchemy.max_overflow = 5
sqlalchemy.echo = false
jinja2.directories = appenlight:templates
jinja2.filters = nl2br = appenlight.lib.jinja2_filters.nl2br
pyramid.includes = pyramid_debugtoolbar
appenlight.includes =
# encryption
encryption_secret = oEOikr_T98wTh_xLH3w8Se3kmbgAQYSM4poZvPosya0=
#redis
redis.url = redis://localhost:6379/0
redis.redlock.url = redis://localhost:6379/3
#elasticsearch
elasticsearch.nodes = http://127.0.0.1:9200
#dirs
webassets.dir = %(here)s/webassets/
#authtkt
authtkt.secure = false
authtkt.secret = SECRET
# session settings
redis.sessions.secret = SECRET
redis.sessions.timeout = 3600
# session cookie settings
redis.sessions.cookie_name = appenlight
redis.sessions.cookie_max_age = 2592000
redis.sessions.cookie_path = /
redis.sessions.cookie_domain =
redis.sessions.cookie_secure = False
redis.sessions.cookie_httponly = False
redis.sessions.cookie_on_exception = True
redis.sessions.prefix = appenlight:session:
#cache
cache.regions = default_term, second, short_term, long_term
cache.type = ext:memcached
cache.url = 127.0.0.1:11211
cache.lock_dir = %(here)s/data/cache/lock
cache.second.expire = 1
cache.short_term.expire = 60
cache.default_term.expire = 300
#mailing
mailing.app_url = https://appenlight.com
mailing.from_name = App Enlight LOCAL
mailing.from_email = [email protected]
###
# Authomatic configuration
###
authomatic.secret = secret
authomatic.pr.facebook.app_id =
authomatic.pr.facebook.secret =
authomatic.pr.twitter.key =
authomatic.pr.twitter.secret =
authomatic.pr.google.key =
authomatic.pr.google.secret =
authomatic.pr.github.key =
authomatic.pr.github.secret =
authomatic.pr.github.scope = repo, public_repo, user:email
authomatic.pr.bitbucket.key =
authomatic.pr.bitbucket.secret =
#ziggurat
ziggurat_foundations.model_locations.User = appenlight.models.user:User
ziggurat_foundations.sign_in.username_key = sign_in_user_name
ziggurat_foundations.sign_in.password_key = sign_in_user_password
ziggurat_foundations.sign_in.came_from_key = came_from
#cometd
cometd.server = http://127.0.0.1:8088/
cometd.secret = secret
cometd.ws_url = wss://127.0.0.1:8088/
# for celery
appenlight.api_key =
appenlight.transport_config = http://127.0.0.1:6543
celery.broker_type = redis
celery.broker_url = redis://localhost:6379/4
celery.concurrency = 4
celery.timezone = UTC
celery.always_eager = true
[filter:paste_prefix]
use = egg:PasteDeploy#prefix
[filter:appenlight_client]
use = egg:appenlight_client
appenlight.api_key =
appenlight.transport_config = http://127.0.0.1:6543
appenlight.report_local_vars = true
appenlight.report_404 = true
appenlight.timing.dbapi2_psycopg2 = 0.3
[pipeline:main]
pipeline =
paste_prefix
appenlight_client
appenlight
[server:main]
use = egg:waitress
host = 0.0.0.0
port = 6543
[server:main_prod]
use = egg:gunicorn#main
host = 0.0.0.0:6543, unix:/tmp/appenlight.sock
workers = 6
timeout = 90
#max_requests = 1000
# Begin logging configuration
[loggers]
keys = root, appenlight, sqlalchemy, elasticsearch
[handlers]
keys = console
[formatters]
keys = generic, json
[logger_root]
level = INFO
handlers = console
[logger_appenlight]
level = INFO
handlers =
qualname = appenlight
[logger_elasticsearch]
level = WARN
handlers =
qualname = elasticsearch
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = json
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# json string will land as "message" key of format string
[formatter_json]
class=appenlight.lib.logging.JSONFormatter
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
# End logging configuration