##// END OF EJS Templates
dev ini updates
ergo -
Show More
@@ -1,201 +1,206 b''
1 1 [app:appenlight]
2 2 use = egg:appenlight
3 3 reload_templates = true
4 4 debug_authorization = true
5 5 debug_notfound = true
6 6 debug_routematch = true
7 7 debug_templates = true
8 8 default_locale_name = en
9 9 sqlalchemy.url = postgresql://test:test@localhost/appenlight
10 10 sqlalchemy.pool_size = 10
11 11 sqlalchemy.max_overflow = 50
12 12 sqlalchemy.echo = false
13 13 jinja2.directories = appenlight:templates
14 14 jinja2.filters = nl2br = appenlight.lib.jinja2_filters.nl2br
15 15
16 16
17 17 pyramid.includes = pyramid_debugtoolbar
18 18
19 19 debugtoolbar.panels =
20 20 pyramid_debugtoolbar.panels.versions.VersionDebugPanel
21 21 pyramid_debugtoolbar.panels.settings.SettingsDebugPanel
22 22 pyramid_debugtoolbar.panels.headers.HeaderDebugPanel
23 23 pyramid_debugtoolbar.panels.renderings.RenderingsDebugPanel
24 24 pyramid_debugtoolbar.panels.logger.LoggingPanel
25 25 pyramid_debugtoolbar.panels.performance.PerformanceDebugPanel
26 26 pyramid_debugtoolbar.panels.routes.RoutesDebugPanel
27 27 pyramid_debugtoolbar.panels.sqla.SQLADebugPanel
28 28 pyramid_debugtoolbar.panels.tweens.TweensDebugPanel
29 29 pyramid_debugtoolbar.panels.introspection.IntrospectionDebugPanel
30 30
31 31 appenlight.includes =
32 32
33 33 # encryption
34 34 encryption_secret = oEOikr_T98wTh_xLH3w8Se3kmbgAQYSM4poZvPosya0=
35 35
36 36 #redis
37 37 redis.url = redis://localhost:6379/0
38 38 redis.redlock.url = redis://localhost:6379/3
39 39
40 40 #elasticsearch
41 41 elasticsearch.nodes = http://127.0.0.1:9200
42 42
43 43 #dirs
44 44 webassets.dir = %(here)s/webassets/
45 45
46 46 #authtkt
47 47 authtkt.secure = false
48 48 authtkt.secret = SECRET
49 49 # session settings
50 50 redis.sessions.secret = SECRET
51 51 redis.sessions.timeout = 86400
52 52
53 53 # session cookie settings
54 54 redis.sessions.cookie_name = appenlight
55 55 redis.sessions.cookie_max_age = 2592000
56 56 redis.sessions.cookie_path = /
57 57 redis.sessions.cookie_domain =
58 58 redis.sessions.cookie_secure = False
59 59 redis.sessions.cookie_httponly = False
60 60 redis.sessions.cookie_on_exception = True
61 61 redis.sessions.prefix = appenlight:session:
62 62
63 63
64 64 #cache
65 65 cache.regions = default_term, second, short_term, long_term
66 66 cache.type = ext:memcached
67 67 cache.url = 127.0.0.1:11211
68 68 cache.lock_dir = %(here)s/data/cache/lock
69 69 cache.second.expire = 1
70 70 cache.short_term.expire = 60
71 71 cache.default_term.expire = 300
72 72
73 73 #mailing
74 74 mailing.app_url = http://localhost:6543
75 75 mailing.from_name = App Enlight LOCAL
76 76 mailing.from_email = no-reply@appenlight.local
77 77
78 78
79 79 ###
80 80 # Authomatic configuration
81 81 ###
82 82
83 83 authomatic.secret = SECRET
84 84 authomatic.pr.facebook.app_id =
85 85 authomatic.pr.facebook.secret =
86 86 authomatic.pr.twitter.key =
87 87 authomatic.pr.twitter.secret =
88 88 authomatic.pr.google.key =
89 89 authomatic.pr.google.secret =
90 90 authomatic.pr.github.key =
91 91 authomatic.pr.github.secret =
92 92 authomatic.pr.github.scope = repo, public_repo, user:email
93 93 authomatic.pr.bitbucket.key =
94 94 authomatic.pr.bitbucket.secret =
95 95
96 96 #ziggurat
97 97 ziggurat_foundations.model_locations.User = appenlight.models.user:User
98 98 ziggurat_foundations.sign_in.username_key = sign_in_user_name
99 99 ziggurat_foundations.sign_in.password_key = sign_in_user_password
100 100 ziggurat_foundations.sign_in.came_from_key = came_from
101 101
102 102 #cometd
103 103 cometd.server = http://127.0.0.1:8088/
104 104 cometd.secret = secret
105 105 cometd.ws_url = http://127.0.0.1:8088/
106 106
107 107
108 108 # for celery
109 109 appenlight.api_key =
110 appenlight.transport_config =
110 appenlight.transport_config = http://127.0.0.1:6543?threaded=1
111 111 appenlight.public_api_key =
112 112
113 113 celery.broker_type = redis
114 114 celery.broker_url = redis://localhost:6379/3
115 115 celery.concurrency = 4
116 116 celery.timezone = UTC
117 117
118 118
119 119 [filter:paste_prefix]
120 120 use = egg:PasteDeploy#prefix
121 121
122 122
123 123 [filter:appenlight_client]
124 124 use = egg:appenlight_client
125 125 appenlight.api_key =
126 appenlight.transport_config =
126 appenlight.transport_config = http://127.0.0.1:6543?threaded=1
127 127 appenlight.report_local_vars = true
128 128 appenlight.report_404 = true
129 129 appenlight.logging.level = DEBUG
130 130 appenlight.timing.dbapi2_psycopg2 = 0.3
131 131
132 132
133 133 [pipeline:main]
134 134 pipeline =
135 135 paste_prefix
136 136 appenlight_client
137 137 appenlight
138 138
139 139
140 140
141 141 [server:main]
142 142 use = egg:waitress
143 143 host = 0.0.0.0
144 144 port = 6543
145 145
146 146 [server:main_prod]
147 147 use = egg:gunicorn#main
148 148 host = 0.0.0.0:6543, unix:/tmp/appenlight.sock
149 149 workers = 6
150 150 timeout = 90
151 151 #max_requests = 1000
152 152
153 153
154 154 # Begin logging configuration
155 155
156 156 [loggers]
157 keys = root, appenlight, sqlalchemy, elasticsearch
157 keys = root, appenlight, sqlalchemy, elasticsearch, elasticsearch_trace
158 158
159 159 [handlers]
160 160 keys = console
161 161
162 162 [formatters]
163 163 keys = generic, json
164 164
165 165 [logger_root]
166 166 level = INFO
167 167 handlers = console
168 168
169 169 [logger_appenlight]
170 170 level = INFO
171 171 handlers =
172 172 qualname = appenlight
173 173
174 174 [logger_elasticsearch]
175 175 level = WARN
176 176 handlers =
177 177 qualname = elasticsearch
178 178
179 [logger_elasticsearch_trace]
180 level = WARN
181 handlers =
182 qualname = elasticsearch.trace
183
179 184 [logger_sqlalchemy]
180 185 level = WARN
181 186 handlers =
182 187 qualname = sqlalchemy.engine
183 188 # "level = INFO" logs SQL queries.
184 189 # "level = DEBUG" logs SQL queries and results.
185 190 # "level = WARN" logs neither. (Recommended for production systems.)
186 191
187 192 [handler_console]
188 193 class = StreamHandler
189 194 args = (sys.stderr,)
190 195 level = NOTSET
191 196 formatter = json
192 197
193 198 [formatter_generic]
194 199 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
195 200
196 201 # json string will land as "message" key of format string
197 202 [formatter_json]
198 203 class=appenlight.lib.logging.JSONFormatter
199 204 format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
200 205
201 206 # End logging configuration
General Comments 0
You need to be logged in to leave comments. Login now