Show More
@@ -1,509 +1,509 b'' | |||
|
1 | 1 | ################################################################################ |
|
2 | 2 | ################################################################################ |
|
3 | 3 | # RhodeCode - Pylons environment configuration # |
|
4 | 4 | # # |
|
5 | 5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
6 | 6 | ################################################################################ |
|
7 | 7 | |
|
8 | 8 | [DEFAULT] |
|
9 | 9 | debug = true |
|
10 | 10 | pdebug = false |
|
11 | 11 | ################################################################################ |
|
12 | 12 | ## Uncomment and replace with the address which should receive ## |
|
13 | 13 | ## any error reports after application crash ## |
|
14 | 14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
15 | 15 | ################################################################################ |
|
16 | 16 | #email_to = admin@localhost |
|
17 | 17 | #error_email_from = paste_error@localhost |
|
18 | 18 | #app_email_from = rhodecode-noreply@localhost |
|
19 | 19 | #error_message = |
|
20 | 20 | #email_prefix = [RhodeCode] |
|
21 | 21 | |
|
22 | 22 | #smtp_server = mail.server.com |
|
23 | 23 | #smtp_username = |
|
24 | 24 | #smtp_password = |
|
25 | 25 | #smtp_port = |
|
26 | 26 | #smtp_use_tls = false |
|
27 | 27 | #smtp_use_ssl = true |
|
28 | 28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
29 | 29 | #smtp_auth = |
|
30 | 30 | |
|
31 | 31 | [server:main] |
|
32 | 32 | ## PASTE ## |
|
33 | 33 | #use = egg:Paste#http |
|
34 | 34 | ## nr of worker threads to spawn |
|
35 | 35 | #threadpool_workers = 5 |
|
36 | 36 | ## max request before thread respawn |
|
37 | 37 | #threadpool_max_requests = 10 |
|
38 | 38 | ## option to use threads of process |
|
39 | 39 | #use_threadpool = true |
|
40 | 40 | |
|
41 | 41 | ## WAITRESS ## |
|
42 | 42 | use = egg:waitress#main |
|
43 | 43 | ## number of worker threads |
|
44 | 44 | threads = 5 |
|
45 | 45 | ## MAX BODY SIZE 100GB |
|
46 | 46 | max_request_body_size = 107374182400 |
|
47 | 47 | ## use poll instead of select, fixes fd limits, may not work on old |
|
48 | 48 | ## windows systems. |
|
49 | asyncore_use_poll = True | |
|
49 | #asyncore_use_poll = True | |
|
50 | 50 | |
|
51 | 51 | ## GUNICORN ## |
|
52 | 52 | #use = egg:gunicorn#main |
|
53 | 53 | ## number of process workers. You must set `instance_id = *` when this option |
|
54 | 54 | ## is set to more than one worker |
|
55 | 55 | #workers = 1 |
|
56 | 56 | ## process name |
|
57 | 57 | #proc_name = rhodecode |
|
58 | 58 | ## type of worker class, one of sync, eventlet, gevent, tornado |
|
59 | 59 | ## recommended for bigger setup is using of of other than sync one |
|
60 | 60 | #worker-class = sync |
|
61 | 61 | #max-requests = 5 |
|
62 | 62 | |
|
63 | 63 | ## COMMON ## |
|
64 | 64 | host = 0.0.0.0 |
|
65 | 65 | port = 5000 |
|
66 | 66 | |
|
67 | 67 | ## prefix middleware for rc |
|
68 | 68 | #[filter:proxy-prefix] |
|
69 | 69 | #use = egg:PasteDeploy#prefix |
|
70 | 70 | #prefix = /<your-prefix> |
|
71 | 71 | |
|
72 | 72 | [app:main] |
|
73 | 73 | use = egg:rhodecode |
|
74 | 74 | ## enable proxy prefix middleware |
|
75 | 75 | #filter-with = proxy-prefix |
|
76 | 76 | |
|
77 | 77 | full_stack = true |
|
78 | 78 | static_files = true |
|
79 | 79 | ## Optional Languages |
|
80 | 80 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl |
|
81 | 81 | lang = en |
|
82 | 82 | cache_dir = %(here)s/data |
|
83 | 83 | index_dir = %(here)s/data/index |
|
84 | 84 | |
|
85 | 85 | ## perform a full repository scan on each server start, this should be |
|
86 | 86 | ## set to false after first startup, to allow faster server restarts. |
|
87 | 87 | initial_repo_scan = true |
|
88 | 88 | |
|
89 | 89 | ## uncomment and set this path to use archive download cache |
|
90 | 90 | #archive_cache_dir = /tmp/tarballcache |
|
91 | 91 | |
|
92 | 92 | ## change this to unique ID for security |
|
93 | 93 | app_instance_uuid = rc-production |
|
94 | 94 | |
|
95 | 95 | ## cut off limit for large diffs (size in bytes) |
|
96 | 96 | cut_off_limit = 256000 |
|
97 | 97 | |
|
98 | 98 | ## use cache version of scm repo everywhere |
|
99 | 99 | vcs_full_cache = true |
|
100 | 100 | |
|
101 | 101 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
102 | 102 | force_https = false |
|
103 | 103 | |
|
104 | 104 | ## use Strict-Transport-Security headers |
|
105 | 105 | use_htsts = false |
|
106 | 106 | |
|
107 | 107 | ## number of commits stats will parse on each iteration |
|
108 | 108 | commit_parse_limit = 25 |
|
109 | 109 | |
|
110 | 110 | ## use gravatar service to display avatars |
|
111 | 111 | use_gravatar = true |
|
112 | 112 | |
|
113 | 113 | ## path to git executable |
|
114 | 114 | git_path = git |
|
115 | 115 | |
|
116 | 116 | ## git rev filter option, --all is the default filter, if you need to |
|
117 | 117 | ## hide all refs in changelog switch this to --branches --tags |
|
118 | 118 | git_rev_filter=--all |
|
119 | 119 | |
|
120 | 120 | ## RSS feed options |
|
121 | 121 | rss_cut_off_limit = 256000 |
|
122 | 122 | rss_items_per_page = 10 |
|
123 | 123 | rss_include_diff = false |
|
124 | 124 | |
|
125 | 125 | ## options for showing and identifying changesets |
|
126 | 126 | show_sha_length = 12 |
|
127 | 127 | show_revision_number = true |
|
128 | 128 | |
|
129 | 129 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
130 | 130 | ## url that does rewrites to _admin/gists/<gistid>. |
|
131 | 131 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
132 | 132 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
133 | 133 | gist_alias_url = |
|
134 | 134 | |
|
135 | 135 | ## white list of API enabled controllers. This allows to add list of |
|
136 | 136 | ## controllers to which access will be enabled by api_key. eg: to enable |
|
137 | 137 | ## api access to raw_files put `FilesController:raw`, to enable access to patches |
|
138 | 138 | ## add `ChangesetController:changeset_patch`. This list should be "," separated |
|
139 | 139 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names |
|
140 | 140 | api_access_controllers_whitelist = |
|
141 | 141 | |
|
142 | 142 | ## alternative_gravatar_url allows you to use your own avatar server application |
|
143 | 143 | ## the following parts of the URL will be replaced |
|
144 | 144 | ## {email} user email |
|
145 | 145 | ## {md5email} md5 hash of the user email (like at gravatar.com) |
|
146 | 146 | ## {size} size of the image that is expected from the server application |
|
147 | 147 | ## {scheme} http/https from RhodeCode server |
|
148 | 148 | ## {netloc} network location from RhodeCode server |
|
149 | 149 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} |
|
150 | 150 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} |
|
151 | 151 | |
|
152 | 152 | |
|
153 | 153 | ## container auth options |
|
154 | 154 | container_auth_enabled = false |
|
155 | 155 | proxypass_auth_enabled = false |
|
156 | 156 | |
|
157 | 157 | ## default encoding used to convert from and to unicode |
|
158 | 158 | ## can be also a comma seperated list of encoding in case of mixed encodings |
|
159 | 159 | default_encoding = utf8 |
|
160 | 160 | |
|
161 | 161 | ## overwrite schema of clone url |
|
162 | 162 | ## available vars: |
|
163 | 163 | ## scheme - http/https |
|
164 | 164 | ## user - current user |
|
165 | 165 | ## pass - password |
|
166 | 166 | ## netloc - network location |
|
167 | 167 | ## path - usually repo_name |
|
168 | 168 | |
|
169 | 169 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
170 | 170 | |
|
171 | 171 | ## issue tracking mapping for commits messages |
|
172 | 172 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
173 | 173 | |
|
174 | 174 | ## pattern to get the issues from commit messages |
|
175 | 175 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
176 | 176 | ## {id} will be all groups matched from this pattern |
|
177 | 177 | |
|
178 | 178 | issue_pat = (?:\s*#)(\d+) |
|
179 | 179 | |
|
180 | 180 | ## server url to the issue, each {id} will be replaced with match |
|
181 | 181 | ## fetched from the regex and {repo} is replaced with full repository name |
|
182 | 182 | ## including groups {repo_name} is replaced with just name of repo |
|
183 | 183 | |
|
184 | 184 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
185 | 185 | |
|
186 | 186 | ## prefix to add to link to indicate it's an url |
|
187 | 187 | ## #314 will be replaced by <issue_prefix><id> |
|
188 | 188 | |
|
189 | 189 | issue_prefix = # |
|
190 | 190 | |
|
191 | 191 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify |
|
192 | 192 | ## multiple patterns, to other issues server, wiki or others |
|
193 | 193 | ## below an example how to create a wiki pattern |
|
194 | 194 | # #wiki-some-id -> https://mywiki.com/some-id |
|
195 | 195 | |
|
196 | 196 | #issue_pat_wiki = (?:wiki-)(.+) |
|
197 | 197 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
198 | 198 | #issue_prefix_wiki = WIKI- |
|
199 | 199 | |
|
200 | 200 | |
|
201 | 201 | ## instance-id prefix |
|
202 | 202 | ## a prefix key for this instance used for cache invalidation when running |
|
203 | 203 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
204 | 204 | ## all running rhodecode instances. Leave empty if you don't use it |
|
205 | 205 | instance_id = |
|
206 | 206 | |
|
207 | 207 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
208 | 208 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
209 | 209 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
210 | 210 | auth_ret_code = |
|
211 | 211 | |
|
212 | 212 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
213 | 213 | ## codes don't break the transactions while 4XX codes do |
|
214 | 214 | lock_ret_code = 423 |
|
215 | 215 | |
|
216 | 216 | allow_repo_location_change = True |
|
217 | 217 | |
|
218 | 218 | #################################### |
|
219 | 219 | ### CELERY CONFIG #### |
|
220 | 220 | #################################### |
|
221 | 221 | use_celery = false |
|
222 | 222 | broker.host = localhost |
|
223 | 223 | broker.vhost = rabbitmqhost |
|
224 | 224 | broker.port = 5672 |
|
225 | 225 | broker.user = rabbitmq |
|
226 | 226 | broker.password = qweqwe |
|
227 | 227 | |
|
228 | 228 | celery.imports = rhodecode.lib.celerylib.tasks |
|
229 | 229 | |
|
230 | 230 | celery.result.backend = amqp |
|
231 | 231 | celery.result.dburi = amqp:// |
|
232 | 232 | celery.result.serialier = json |
|
233 | 233 | |
|
234 | 234 | #celery.send.task.error.emails = true |
|
235 | 235 | #celery.amqp.task.result.expires = 18000 |
|
236 | 236 | |
|
237 | 237 | celeryd.concurrency = 2 |
|
238 | 238 | #celeryd.log.file = celeryd.log |
|
239 | 239 | celeryd.log.level = debug |
|
240 | 240 | celeryd.max.tasks.per.child = 1 |
|
241 | 241 | |
|
242 | 242 | ## tasks will never be sent to the queue, but executed locally instead. |
|
243 | 243 | celery.always.eager = false |
|
244 | 244 | |
|
245 | 245 | #################################### |
|
246 | 246 | ### BEAKER CACHE #### |
|
247 | 247 | #################################### |
|
248 | 248 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
249 | 249 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
250 | 250 | |
|
251 | 251 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
252 | 252 | |
|
253 | 253 | beaker.cache.super_short_term.type=memory |
|
254 | 254 | beaker.cache.super_short_term.expire=10 |
|
255 | 255 | beaker.cache.super_short_term.key_length = 256 |
|
256 | 256 | |
|
257 | 257 | beaker.cache.short_term.type=memory |
|
258 | 258 | beaker.cache.short_term.expire=60 |
|
259 | 259 | beaker.cache.short_term.key_length = 256 |
|
260 | 260 | |
|
261 | 261 | beaker.cache.long_term.type=memory |
|
262 | 262 | beaker.cache.long_term.expire=36000 |
|
263 | 263 | beaker.cache.long_term.key_length = 256 |
|
264 | 264 | |
|
265 | 265 | beaker.cache.sql_cache_short.type=memory |
|
266 | 266 | beaker.cache.sql_cache_short.expire=10 |
|
267 | 267 | beaker.cache.sql_cache_short.key_length = 256 |
|
268 | 268 | |
|
269 | 269 | beaker.cache.sql_cache_med.type=memory |
|
270 | 270 | beaker.cache.sql_cache_med.expire=360 |
|
271 | 271 | beaker.cache.sql_cache_med.key_length = 256 |
|
272 | 272 | |
|
273 | 273 | beaker.cache.sql_cache_long.type=file |
|
274 | 274 | beaker.cache.sql_cache_long.expire=3600 |
|
275 | 275 | beaker.cache.sql_cache_long.key_length = 256 |
|
276 | 276 | |
|
277 | 277 | #################################### |
|
278 | 278 | ### BEAKER SESSION #### |
|
279 | 279 | #################################### |
|
280 | 280 | ## Type of storage used for the session, current types are |
|
281 | 281 | ## dbm, file, memcached, database, and memory. |
|
282 | 282 | ## The storage uses the Container API |
|
283 | 283 | ## that is also used by the cache system. |
|
284 | 284 | |
|
285 | 285 | ## db session ## |
|
286 | 286 | #beaker.session.type = ext:database |
|
287 | 287 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
288 | 288 | #beaker.session.table_name = db_session |
|
289 | 289 | |
|
290 | 290 | ## encrypted cookie client side session, good for many instances ## |
|
291 | 291 | #beaker.session.type = cookie |
|
292 | 292 | |
|
293 | 293 | ## file based cookies (default) ## |
|
294 | 294 | #beaker.session.type = file |
|
295 | 295 | |
|
296 | 296 | |
|
297 | 297 | beaker.session.key = rhodecode |
|
298 | 298 | ## secure cookie requires AES python libraries |
|
299 | 299 | #beaker.session.encrypt_key = <key_for_encryption> |
|
300 | 300 | #beaker.session.validate_key = <validation_key> |
|
301 | 301 | |
|
302 | 302 | ## sets session as invalid if it haven't been accessed for given amount of time |
|
303 | 303 | beaker.session.timeout = 2592000 |
|
304 | 304 | beaker.session.httponly = true |
|
305 | 305 | #beaker.session.cookie_path = /<your-prefix> |
|
306 | 306 | |
|
307 | 307 | ## uncomment for https secure cookie |
|
308 | 308 | beaker.session.secure = false |
|
309 | 309 | |
|
310 | 310 | ## auto save the session to not to use .save() |
|
311 | 311 | beaker.session.auto = False |
|
312 | 312 | |
|
313 | 313 | ## default cookie expiration time in seconds `true` expire at browser close ## |
|
314 | 314 | #beaker.session.cookie_expires = 3600 |
|
315 | 315 | |
|
316 | 316 | |
|
317 | 317 | ############################ |
|
318 | 318 | ## ERROR HANDLING SYSTEMS ## |
|
319 | 319 | ############################ |
|
320 | 320 | |
|
321 | 321 | #################### |
|
322 | 322 | ### [errormator] ### |
|
323 | 323 | #################### |
|
324 | 324 | |
|
325 | 325 | ## Errormator is tailored to work with RhodeCode, see |
|
326 | 326 | ## http://errormator.com for details how to obtain an account |
|
327 | 327 | ## you must install python package `errormator_client` to make it work |
|
328 | 328 | |
|
329 | 329 | ## errormator enabled |
|
330 | 330 | errormator = false |
|
331 | 331 | |
|
332 | 332 | errormator.server_url = https://api.errormator.com |
|
333 | 333 | errormator.api_key = YOUR_API_KEY |
|
334 | 334 | |
|
335 | 335 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
336 | 336 | |
|
337 | 337 | ## enables 404 error logging (default False) |
|
338 | 338 | errormator.report_404 = false |
|
339 | 339 | |
|
340 | 340 | ## time in seconds after request is considered being slow (default 1) |
|
341 | 341 | errormator.slow_request_time = 1 |
|
342 | 342 | |
|
343 | 343 | ## record slow requests in application |
|
344 | 344 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
345 | 345 | errormator.slow_requests = true |
|
346 | 346 | |
|
347 | 347 | ## enable hooking to application loggers |
|
348 | 348 | # errormator.logging = true |
|
349 | 349 | |
|
350 | 350 | ## minimum log level for log capture |
|
351 | 351 | # errormator.logging.level = WARNING |
|
352 | 352 | |
|
353 | 353 | ## send logs only from erroneous/slow requests |
|
354 | 354 | ## (saves API quota for intensive logging) |
|
355 | 355 | errormator.logging_on_error = false |
|
356 | 356 | |
|
357 | 357 | ## list of additonal keywords that should be grabbed from environ object |
|
358 | 358 | ## can be string with comma separated list of words in lowercase |
|
359 | 359 | ## (by default client will always send following info: |
|
360 | 360 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
361 | 361 | ## start with HTTP* this list be extended with additional keywords here |
|
362 | 362 | errormator.environ_keys_whitelist = |
|
363 | 363 | |
|
364 | 364 | |
|
365 | 365 | ## list of keywords that should be blanked from request object |
|
366 | 366 | ## can be string with comma separated list of words in lowercase |
|
367 | 367 | ## (by default client will always blank keys that contain following words |
|
368 | 368 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
369 | 369 | ## this list be extended with additional keywords set here |
|
370 | 370 | errormator.request_keys_blacklist = |
|
371 | 371 | |
|
372 | 372 | |
|
373 | 373 | ## list of namespaces that should be ignores when gathering log entries |
|
374 | 374 | ## can be string with comma separated list of namespaces |
|
375 | 375 | ## (by default the client ignores own entries: errormator_client.client) |
|
376 | 376 | errormator.log_namespace_blacklist = |
|
377 | 377 | |
|
378 | 378 | |
|
379 | 379 | ################ |
|
380 | 380 | ### [sentry] ### |
|
381 | 381 | ################ |
|
382 | 382 | |
|
383 | 383 | ## sentry is a alternative open source error aggregator |
|
384 | 384 | ## you must install python packages `sentry` and `raven` to enable |
|
385 | 385 | |
|
386 | 386 | sentry.dsn = YOUR_DNS |
|
387 | 387 | sentry.servers = |
|
388 | 388 | sentry.name = |
|
389 | 389 | sentry.key = |
|
390 | 390 | sentry.public_key = |
|
391 | 391 | sentry.secret_key = |
|
392 | 392 | sentry.project = |
|
393 | 393 | sentry.site = |
|
394 | 394 | sentry.include_paths = |
|
395 | 395 | sentry.exclude_paths = |
|
396 | 396 | |
|
397 | 397 | |
|
398 | 398 | ################################################################################ |
|
399 | 399 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
400 | 400 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
401 | 401 | ## execute malicious code after an exception is raised. ## |
|
402 | 402 | ################################################################################ |
|
403 | 403 | #set debug = false |
|
404 | 404 | |
|
405 | 405 | ################################## |
|
406 | 406 | ### LOGVIEW CONFIG ### |
|
407 | 407 | ################################## |
|
408 | 408 | logview.sqlalchemy = #faa |
|
409 | 409 | logview.pylons.templating = #bfb |
|
410 | 410 | logview.pylons.util = #eee |
|
411 | 411 | |
|
412 | 412 | ######################################################### |
|
413 | 413 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
414 | 414 | ######################################################### |
|
415 | 415 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
416 | 416 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode |
|
417 | 417 | sqlalchemy.db1.echo = false |
|
418 | 418 | sqlalchemy.db1.pool_recycle = 3600 |
|
419 | 419 | sqlalchemy.db1.convert_unicode = true |
|
420 | 420 | |
|
421 | 421 | ################################ |
|
422 | 422 | ### LOGGING CONFIGURATION #### |
|
423 | 423 | ################################ |
|
424 | 424 | [loggers] |
|
425 | 425 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
426 | 426 | |
|
427 | 427 | [handlers] |
|
428 | 428 | keys = console, console_sql |
|
429 | 429 | |
|
430 | 430 | [formatters] |
|
431 | 431 | keys = generic, color_formatter, color_formatter_sql |
|
432 | 432 | |
|
433 | 433 | ############# |
|
434 | 434 | ## LOGGERS ## |
|
435 | 435 | ############# |
|
436 | 436 | [logger_root] |
|
437 | 437 | level = NOTSET |
|
438 | 438 | handlers = console |
|
439 | 439 | |
|
440 | 440 | [logger_routes] |
|
441 | 441 | level = DEBUG |
|
442 | 442 | handlers = |
|
443 | 443 | qualname = routes.middleware |
|
444 | 444 | ## "level = DEBUG" logs the route matched and routing variables. |
|
445 | 445 | propagate = 1 |
|
446 | 446 | |
|
447 | 447 | [logger_beaker] |
|
448 | 448 | level = DEBUG |
|
449 | 449 | handlers = |
|
450 | 450 | qualname = beaker.container |
|
451 | 451 | propagate = 1 |
|
452 | 452 | |
|
453 | 453 | [logger_templates] |
|
454 | 454 | level = INFO |
|
455 | 455 | handlers = |
|
456 | 456 | qualname = pylons.templating |
|
457 | 457 | propagate = 1 |
|
458 | 458 | |
|
459 | 459 | [logger_rhodecode] |
|
460 | 460 | level = DEBUG |
|
461 | 461 | handlers = |
|
462 | 462 | qualname = rhodecode |
|
463 | 463 | propagate = 1 |
|
464 | 464 | |
|
465 | 465 | [logger_sqlalchemy] |
|
466 | 466 | level = INFO |
|
467 | 467 | handlers = console_sql |
|
468 | 468 | qualname = sqlalchemy.engine |
|
469 | 469 | propagate = 0 |
|
470 | 470 | |
|
471 | 471 | [logger_whoosh_indexer] |
|
472 | 472 | level = DEBUG |
|
473 | 473 | handlers = |
|
474 | 474 | qualname = whoosh_indexer |
|
475 | 475 | propagate = 1 |
|
476 | 476 | |
|
477 | 477 | ############## |
|
478 | 478 | ## HANDLERS ## |
|
479 | 479 | ############## |
|
480 | 480 | |
|
481 | 481 | [handler_console] |
|
482 | 482 | class = StreamHandler |
|
483 | 483 | args = (sys.stderr,) |
|
484 | 484 | level = DEBUG |
|
485 | 485 | formatter = color_formatter |
|
486 | 486 | |
|
487 | 487 | [handler_console_sql] |
|
488 | 488 | class = StreamHandler |
|
489 | 489 | args = (sys.stderr,) |
|
490 | 490 | level = DEBUG |
|
491 | 491 | formatter = color_formatter_sql |
|
492 | 492 | |
|
493 | 493 | ################ |
|
494 | 494 | ## FORMATTERS ## |
|
495 | 495 | ################ |
|
496 | 496 | |
|
497 | 497 | [formatter_generic] |
|
498 | 498 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
499 | 499 | datefmt = %Y-%m-%d %H:%M:%S |
|
500 | 500 | |
|
501 | 501 | [formatter_color_formatter] |
|
502 | 502 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
503 | 503 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
504 | 504 | datefmt = %Y-%m-%d %H:%M:%S |
|
505 | 505 | |
|
506 | 506 | [formatter_color_formatter_sql] |
|
507 | 507 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
508 | 508 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
509 | 509 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,509 +1,509 b'' | |||
|
1 | 1 | ################################################################################ |
|
2 | 2 | ################################################################################ |
|
3 | 3 | # RhodeCode - Pylons environment configuration # |
|
4 | 4 | # # |
|
5 | 5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
6 | 6 | ################################################################################ |
|
7 | 7 | |
|
8 | 8 | [DEFAULT] |
|
9 | 9 | debug = true |
|
10 | 10 | pdebug = false |
|
11 | 11 | ################################################################################ |
|
12 | 12 | ## Uncomment and replace with the address which should receive ## |
|
13 | 13 | ## any error reports after application crash ## |
|
14 | 14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
15 | 15 | ################################################################################ |
|
16 | 16 | #email_to = admin@localhost |
|
17 | 17 | #error_email_from = paste_error@localhost |
|
18 | 18 | #app_email_from = rhodecode-noreply@localhost |
|
19 | 19 | #error_message = |
|
20 | 20 | #email_prefix = [RhodeCode] |
|
21 | 21 | |
|
22 | 22 | #smtp_server = mail.server.com |
|
23 | 23 | #smtp_username = |
|
24 | 24 | #smtp_password = |
|
25 | 25 | #smtp_port = |
|
26 | 26 | #smtp_use_tls = false |
|
27 | 27 | #smtp_use_ssl = true |
|
28 | 28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
29 | 29 | #smtp_auth = |
|
30 | 30 | |
|
31 | 31 | [server:main] |
|
32 | 32 | ## PASTE ## |
|
33 | 33 | #use = egg:Paste#http |
|
34 | 34 | ## nr of worker threads to spawn |
|
35 | 35 | #threadpool_workers = 5 |
|
36 | 36 | ## max request before thread respawn |
|
37 | 37 | #threadpool_max_requests = 10 |
|
38 | 38 | ## option to use threads of process |
|
39 | 39 | #use_threadpool = true |
|
40 | 40 | |
|
41 | 41 | ## WAITRESS ## |
|
42 | 42 | use = egg:waitress#main |
|
43 | 43 | ## number of worker threads |
|
44 | 44 | threads = 5 |
|
45 | 45 | ## MAX BODY SIZE 100GB |
|
46 | 46 | max_request_body_size = 107374182400 |
|
47 | 47 | ## use poll instead of select, fixes fd limits, may not work on old |
|
48 | 48 | ## windows systems. |
|
49 | asyncore_use_poll = True | |
|
49 | #asyncore_use_poll = True | |
|
50 | 50 | |
|
51 | 51 | ## GUNICORN ## |
|
52 | 52 | #use = egg:gunicorn#main |
|
53 | 53 | ## number of process workers. You must set `instance_id = *` when this option |
|
54 | 54 | ## is set to more than one worker |
|
55 | 55 | #workers = 1 |
|
56 | 56 | ## process name |
|
57 | 57 | #proc_name = rhodecode |
|
58 | 58 | ## type of worker class, one of sync, eventlet, gevent, tornado |
|
59 | 59 | ## recommended for bigger setup is using of of other than sync one |
|
60 | 60 | #worker-class = sync |
|
61 | 61 | #max-requests = 5 |
|
62 | 62 | |
|
63 | 63 | ## COMMON ## |
|
64 | 64 | host = 127.0.0.1 |
|
65 | 65 | port = 5000 |
|
66 | 66 | |
|
67 | 67 | ## prefix middleware for rc |
|
68 | 68 | #[filter:proxy-prefix] |
|
69 | 69 | #use = egg:PasteDeploy#prefix |
|
70 | 70 | #prefix = /<your-prefix> |
|
71 | 71 | |
|
72 | 72 | [app:main] |
|
73 | 73 | use = egg:rhodecode |
|
74 | 74 | ## enable proxy prefix middleware |
|
75 | 75 | #filter-with = proxy-prefix |
|
76 | 76 | |
|
77 | 77 | full_stack = true |
|
78 | 78 | static_files = true |
|
79 | 79 | ## Optional Languages |
|
80 | 80 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl |
|
81 | 81 | lang = en |
|
82 | 82 | cache_dir = %(here)s/data |
|
83 | 83 | index_dir = %(here)s/data/index |
|
84 | 84 | |
|
85 | 85 | ## perform a full repository scan on each server start, this should be |
|
86 | 86 | ## set to false after first startup, to allow faster server restarts. |
|
87 | 87 | initial_repo_scan = true |
|
88 | 88 | |
|
89 | 89 | ## uncomment and set this path to use archive download cache |
|
90 | 90 | #archive_cache_dir = /tmp/tarballcache |
|
91 | 91 | |
|
92 | 92 | ## change this to unique ID for security |
|
93 | 93 | app_instance_uuid = rc-production |
|
94 | 94 | |
|
95 | 95 | ## cut off limit for large diffs (size in bytes) |
|
96 | 96 | cut_off_limit = 256000 |
|
97 | 97 | |
|
98 | 98 | ## use cache version of scm repo everywhere |
|
99 | 99 | vcs_full_cache = true |
|
100 | 100 | |
|
101 | 101 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
102 | 102 | force_https = false |
|
103 | 103 | |
|
104 | 104 | ## use Strict-Transport-Security headers |
|
105 | 105 | use_htsts = false |
|
106 | 106 | |
|
107 | 107 | ## number of commits stats will parse on each iteration |
|
108 | 108 | commit_parse_limit = 25 |
|
109 | 109 | |
|
110 | 110 | ## use gravatar service to display avatars |
|
111 | 111 | use_gravatar = true |
|
112 | 112 | |
|
113 | 113 | ## path to git executable |
|
114 | 114 | git_path = git |
|
115 | 115 | |
|
116 | 116 | ## git rev filter option, --all is the default filter, if you need to |
|
117 | 117 | ## hide all refs in changelog switch this to --branches --tags |
|
118 | 118 | git_rev_filter=--all |
|
119 | 119 | |
|
120 | 120 | ## RSS feed options |
|
121 | 121 | rss_cut_off_limit = 256000 |
|
122 | 122 | rss_items_per_page = 10 |
|
123 | 123 | rss_include_diff = false |
|
124 | 124 | |
|
125 | 125 | ## options for showing and identifying changesets |
|
126 | 126 | show_sha_length = 12 |
|
127 | 127 | show_revision_number = true |
|
128 | 128 | |
|
129 | 129 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
130 | 130 | ## url that does rewrites to _admin/gists/<gistid>. |
|
131 | 131 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
132 | 132 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
133 | 133 | gist_alias_url = |
|
134 | 134 | |
|
135 | 135 | ## white list of API enabled controllers. This allows to add list of |
|
136 | 136 | ## controllers to which access will be enabled by api_key. eg: to enable |
|
137 | 137 | ## api access to raw_files put `FilesController:raw`, to enable access to patches |
|
138 | 138 | ## add `ChangesetController:changeset_patch`. This list should be "," separated |
|
139 | 139 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names |
|
140 | 140 | api_access_controllers_whitelist = |
|
141 | 141 | |
|
142 | 142 | ## alternative_gravatar_url allows you to use your own avatar server application |
|
143 | 143 | ## the following parts of the URL will be replaced |
|
144 | 144 | ## {email} user email |
|
145 | 145 | ## {md5email} md5 hash of the user email (like at gravatar.com) |
|
146 | 146 | ## {size} size of the image that is expected from the server application |
|
147 | 147 | ## {scheme} http/https from RhodeCode server |
|
148 | 148 | ## {netloc} network location from RhodeCode server |
|
149 | 149 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} |
|
150 | 150 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} |
|
151 | 151 | |
|
152 | 152 | |
|
153 | 153 | ## container auth options |
|
154 | 154 | container_auth_enabled = false |
|
155 | 155 | proxypass_auth_enabled = false |
|
156 | 156 | |
|
157 | 157 | ## default encoding used to convert from and to unicode |
|
158 | 158 | ## can be also a comma seperated list of encoding in case of mixed encodings |
|
159 | 159 | default_encoding = utf8 |
|
160 | 160 | |
|
161 | 161 | ## overwrite schema of clone url |
|
162 | 162 | ## available vars: |
|
163 | 163 | ## scheme - http/https |
|
164 | 164 | ## user - current user |
|
165 | 165 | ## pass - password |
|
166 | 166 | ## netloc - network location |
|
167 | 167 | ## path - usually repo_name |
|
168 | 168 | |
|
169 | 169 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
170 | 170 | |
|
171 | 171 | ## issue tracking mapping for commits messages |
|
172 | 172 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
173 | 173 | |
|
174 | 174 | ## pattern to get the issues from commit messages |
|
175 | 175 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
176 | 176 | ## {id} will be all groups matched from this pattern |
|
177 | 177 | |
|
178 | 178 | issue_pat = (?:\s*#)(\d+) |
|
179 | 179 | |
|
180 | 180 | ## server url to the issue, each {id} will be replaced with match |
|
181 | 181 | ## fetched from the regex and {repo} is replaced with full repository name |
|
182 | 182 | ## including groups {repo_name} is replaced with just name of repo |
|
183 | 183 | |
|
184 | 184 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
185 | 185 | |
|
186 | 186 | ## prefix to add to link to indicate it's an url |
|
187 | 187 | ## #314 will be replaced by <issue_prefix><id> |
|
188 | 188 | |
|
189 | 189 | issue_prefix = # |
|
190 | 190 | |
|
191 | 191 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify |
|
192 | 192 | ## multiple patterns, to other issues server, wiki or others |
|
193 | 193 | ## below an example how to create a wiki pattern |
|
194 | 194 | # #wiki-some-id -> https://mywiki.com/some-id |
|
195 | 195 | |
|
196 | 196 | #issue_pat_wiki = (?:wiki-)(.+) |
|
197 | 197 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
198 | 198 | #issue_prefix_wiki = WIKI- |
|
199 | 199 | |
|
200 | 200 | |
|
201 | 201 | ## instance-id prefix |
|
202 | 202 | ## a prefix key for this instance used for cache invalidation when running |
|
203 | 203 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
204 | 204 | ## all running rhodecode instances. Leave empty if you don't use it |
|
205 | 205 | instance_id = |
|
206 | 206 | |
|
207 | 207 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
208 | 208 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
209 | 209 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
210 | 210 | auth_ret_code = |
|
211 | 211 | |
|
212 | 212 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
213 | 213 | ## codes don't break the transactions while 4XX codes do |
|
214 | 214 | lock_ret_code = 423 |
|
215 | 215 | |
|
216 | 216 | allow_repo_location_change = True |
|
217 | 217 | |
|
218 | 218 | #################################### |
|
219 | 219 | ### CELERY CONFIG #### |
|
220 | 220 | #################################### |
|
221 | 221 | use_celery = false |
|
222 | 222 | broker.host = localhost |
|
223 | 223 | broker.vhost = rabbitmqhost |
|
224 | 224 | broker.port = 5672 |
|
225 | 225 | broker.user = rabbitmq |
|
226 | 226 | broker.password = qweqwe |
|
227 | 227 | |
|
228 | 228 | celery.imports = rhodecode.lib.celerylib.tasks |
|
229 | 229 | |
|
230 | 230 | celery.result.backend = amqp |
|
231 | 231 | celery.result.dburi = amqp:// |
|
232 | 232 | celery.result.serialier = json |
|
233 | 233 | |
|
234 | 234 | #celery.send.task.error.emails = true |
|
235 | 235 | #celery.amqp.task.result.expires = 18000 |
|
236 | 236 | |
|
237 | 237 | celeryd.concurrency = 2 |
|
238 | 238 | #celeryd.log.file = celeryd.log |
|
239 | 239 | celeryd.log.level = debug |
|
240 | 240 | celeryd.max.tasks.per.child = 1 |
|
241 | 241 | |
|
242 | 242 | ## tasks will never be sent to the queue, but executed locally instead. |
|
243 | 243 | celery.always.eager = false |
|
244 | 244 | |
|
245 | 245 | #################################### |
|
246 | 246 | ### BEAKER CACHE #### |
|
247 | 247 | #################################### |
|
248 | 248 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
249 | 249 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
250 | 250 | |
|
251 | 251 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
252 | 252 | |
|
253 | 253 | beaker.cache.super_short_term.type=memory |
|
254 | 254 | beaker.cache.super_short_term.expire=10 |
|
255 | 255 | beaker.cache.super_short_term.key_length = 256 |
|
256 | 256 | |
|
257 | 257 | beaker.cache.short_term.type=memory |
|
258 | 258 | beaker.cache.short_term.expire=60 |
|
259 | 259 | beaker.cache.short_term.key_length = 256 |
|
260 | 260 | |
|
261 | 261 | beaker.cache.long_term.type=memory |
|
262 | 262 | beaker.cache.long_term.expire=36000 |
|
263 | 263 | beaker.cache.long_term.key_length = 256 |
|
264 | 264 | |
|
265 | 265 | beaker.cache.sql_cache_short.type=memory |
|
266 | 266 | beaker.cache.sql_cache_short.expire=10 |
|
267 | 267 | beaker.cache.sql_cache_short.key_length = 256 |
|
268 | 268 | |
|
269 | 269 | beaker.cache.sql_cache_med.type=memory |
|
270 | 270 | beaker.cache.sql_cache_med.expire=360 |
|
271 | 271 | beaker.cache.sql_cache_med.key_length = 256 |
|
272 | 272 | |
|
273 | 273 | beaker.cache.sql_cache_long.type=file |
|
274 | 274 | beaker.cache.sql_cache_long.expire=3600 |
|
275 | 275 | beaker.cache.sql_cache_long.key_length = 256 |
|
276 | 276 | |
|
277 | 277 | #################################### |
|
278 | 278 | ### BEAKER SESSION #### |
|
279 | 279 | #################################### |
|
280 | 280 | ## Type of storage used for the session, current types are |
|
281 | 281 | ## dbm, file, memcached, database, and memory. |
|
282 | 282 | ## The storage uses the Container API |
|
283 | 283 | ## that is also used by the cache system. |
|
284 | 284 | |
|
285 | 285 | ## db session ## |
|
286 | 286 | #beaker.session.type = ext:database |
|
287 | 287 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
288 | 288 | #beaker.session.table_name = db_session |
|
289 | 289 | |
|
290 | 290 | ## encrypted cookie client side session, good for many instances ## |
|
291 | 291 | #beaker.session.type = cookie |
|
292 | 292 | |
|
293 | 293 | ## file based cookies (default) ## |
|
294 | 294 | #beaker.session.type = file |
|
295 | 295 | |
|
296 | 296 | |
|
297 | 297 | beaker.session.key = rhodecode |
|
298 | 298 | ## secure cookie requires AES python libraries |
|
299 | 299 | #beaker.session.encrypt_key = <key_for_encryption> |
|
300 | 300 | #beaker.session.validate_key = <validation_key> |
|
301 | 301 | |
|
302 | 302 | ## sets session as invalid if it haven't been accessed for given amount of time |
|
303 | 303 | beaker.session.timeout = 2592000 |
|
304 | 304 | beaker.session.httponly = true |
|
305 | 305 | #beaker.session.cookie_path = /<your-prefix> |
|
306 | 306 | |
|
307 | 307 | ## uncomment for https secure cookie |
|
308 | 308 | beaker.session.secure = false |
|
309 | 309 | |
|
310 | 310 | ## auto save the session to not to use .save() |
|
311 | 311 | beaker.session.auto = False |
|
312 | 312 | |
|
313 | 313 | ## default cookie expiration time in seconds `true` expire at browser close ## |
|
314 | 314 | #beaker.session.cookie_expires = 3600 |
|
315 | 315 | |
|
316 | 316 | |
|
317 | 317 | ############################ |
|
318 | 318 | ## ERROR HANDLING SYSTEMS ## |
|
319 | 319 | ############################ |
|
320 | 320 | |
|
321 | 321 | #################### |
|
322 | 322 | ### [errormator] ### |
|
323 | 323 | #################### |
|
324 | 324 | |
|
325 | 325 | ## Errormator is tailored to work with RhodeCode, see |
|
326 | 326 | ## http://errormator.com for details how to obtain an account |
|
327 | 327 | ## you must install python package `errormator_client` to make it work |
|
328 | 328 | |
|
329 | 329 | ## errormator enabled |
|
330 | 330 | errormator = false |
|
331 | 331 | |
|
332 | 332 | errormator.server_url = https://api.errormator.com |
|
333 | 333 | errormator.api_key = YOUR_API_KEY |
|
334 | 334 | |
|
335 | 335 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
336 | 336 | |
|
337 | 337 | ## enables 404 error logging (default False) |
|
338 | 338 | errormator.report_404 = false |
|
339 | 339 | |
|
340 | 340 | ## time in seconds after request is considered being slow (default 1) |
|
341 | 341 | errormator.slow_request_time = 1 |
|
342 | 342 | |
|
343 | 343 | ## record slow requests in application |
|
344 | 344 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
345 | 345 | errormator.slow_requests = true |
|
346 | 346 | |
|
347 | 347 | ## enable hooking to application loggers |
|
348 | 348 | # errormator.logging = true |
|
349 | 349 | |
|
350 | 350 | ## minimum log level for log capture |
|
351 | 351 | # errormator.logging.level = WARNING |
|
352 | 352 | |
|
353 | 353 | ## send logs only from erroneous/slow requests |
|
354 | 354 | ## (saves API quota for intensive logging) |
|
355 | 355 | errormator.logging_on_error = false |
|
356 | 356 | |
|
357 | 357 | ## list of additonal keywords that should be grabbed from environ object |
|
358 | 358 | ## can be string with comma separated list of words in lowercase |
|
359 | 359 | ## (by default client will always send following info: |
|
360 | 360 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
361 | 361 | ## start with HTTP* this list be extended with additional keywords here |
|
362 | 362 | errormator.environ_keys_whitelist = |
|
363 | 363 | |
|
364 | 364 | |
|
365 | 365 | ## list of keywords that should be blanked from request object |
|
366 | 366 | ## can be string with comma separated list of words in lowercase |
|
367 | 367 | ## (by default client will always blank keys that contain following words |
|
368 | 368 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
369 | 369 | ## this list be extended with additional keywords set here |
|
370 | 370 | errormator.request_keys_blacklist = |
|
371 | 371 | |
|
372 | 372 | |
|
373 | 373 | ## list of namespaces that should be ignores when gathering log entries |
|
374 | 374 | ## can be string with comma separated list of namespaces |
|
375 | 375 | ## (by default the client ignores own entries: errormator_client.client) |
|
376 | 376 | errormator.log_namespace_blacklist = |
|
377 | 377 | |
|
378 | 378 | |
|
379 | 379 | ################ |
|
380 | 380 | ### [sentry] ### |
|
381 | 381 | ################ |
|
382 | 382 | |
|
383 | 383 | ## sentry is a alternative open source error aggregator |
|
384 | 384 | ## you must install python packages `sentry` and `raven` to enable |
|
385 | 385 | |
|
386 | 386 | sentry.dsn = YOUR_DNS |
|
387 | 387 | sentry.servers = |
|
388 | 388 | sentry.name = |
|
389 | 389 | sentry.key = |
|
390 | 390 | sentry.public_key = |
|
391 | 391 | sentry.secret_key = |
|
392 | 392 | sentry.project = |
|
393 | 393 | sentry.site = |
|
394 | 394 | sentry.include_paths = |
|
395 | 395 | sentry.exclude_paths = |
|
396 | 396 | |
|
397 | 397 | |
|
398 | 398 | ################################################################################ |
|
399 | 399 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
400 | 400 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
401 | 401 | ## execute malicious code after an exception is raised. ## |
|
402 | 402 | ################################################################################ |
|
403 | 403 | set debug = false |
|
404 | 404 | |
|
405 | 405 | ################################## |
|
406 | 406 | ### LOGVIEW CONFIG ### |
|
407 | 407 | ################################## |
|
408 | 408 | logview.sqlalchemy = #faa |
|
409 | 409 | logview.pylons.templating = #bfb |
|
410 | 410 | logview.pylons.util = #eee |
|
411 | 411 | |
|
412 | 412 | ######################################################### |
|
413 | 413 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
414 | 414 | ######################################################### |
|
415 | 415 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
416 | 416 | sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode |
|
417 | 417 | sqlalchemy.db1.echo = false |
|
418 | 418 | sqlalchemy.db1.pool_recycle = 3600 |
|
419 | 419 | sqlalchemy.db1.convert_unicode = true |
|
420 | 420 | |
|
421 | 421 | ################################ |
|
422 | 422 | ### LOGGING CONFIGURATION #### |
|
423 | 423 | ################################ |
|
424 | 424 | [loggers] |
|
425 | 425 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
426 | 426 | |
|
427 | 427 | [handlers] |
|
428 | 428 | keys = console, console_sql |
|
429 | 429 | |
|
430 | 430 | [formatters] |
|
431 | 431 | keys = generic, color_formatter, color_formatter_sql |
|
432 | 432 | |
|
433 | 433 | ############# |
|
434 | 434 | ## LOGGERS ## |
|
435 | 435 | ############# |
|
436 | 436 | [logger_root] |
|
437 | 437 | level = NOTSET |
|
438 | 438 | handlers = console |
|
439 | 439 | |
|
440 | 440 | [logger_routes] |
|
441 | 441 | level = DEBUG |
|
442 | 442 | handlers = |
|
443 | 443 | qualname = routes.middleware |
|
444 | 444 | ## "level = DEBUG" logs the route matched and routing variables. |
|
445 | 445 | propagate = 1 |
|
446 | 446 | |
|
447 | 447 | [logger_beaker] |
|
448 | 448 | level = DEBUG |
|
449 | 449 | handlers = |
|
450 | 450 | qualname = beaker.container |
|
451 | 451 | propagate = 1 |
|
452 | 452 | |
|
453 | 453 | [logger_templates] |
|
454 | 454 | level = INFO |
|
455 | 455 | handlers = |
|
456 | 456 | qualname = pylons.templating |
|
457 | 457 | propagate = 1 |
|
458 | 458 | |
|
459 | 459 | [logger_rhodecode] |
|
460 | 460 | level = DEBUG |
|
461 | 461 | handlers = |
|
462 | 462 | qualname = rhodecode |
|
463 | 463 | propagate = 1 |
|
464 | 464 | |
|
465 | 465 | [logger_sqlalchemy] |
|
466 | 466 | level = INFO |
|
467 | 467 | handlers = console_sql |
|
468 | 468 | qualname = sqlalchemy.engine |
|
469 | 469 | propagate = 0 |
|
470 | 470 | |
|
471 | 471 | [logger_whoosh_indexer] |
|
472 | 472 | level = DEBUG |
|
473 | 473 | handlers = |
|
474 | 474 | qualname = whoosh_indexer |
|
475 | 475 | propagate = 1 |
|
476 | 476 | |
|
477 | 477 | ############## |
|
478 | 478 | ## HANDLERS ## |
|
479 | 479 | ############## |
|
480 | 480 | |
|
481 | 481 | [handler_console] |
|
482 | 482 | class = StreamHandler |
|
483 | 483 | args = (sys.stderr,) |
|
484 | 484 | level = INFO |
|
485 | 485 | formatter = generic |
|
486 | 486 | |
|
487 | 487 | [handler_console_sql] |
|
488 | 488 | class = StreamHandler |
|
489 | 489 | args = (sys.stderr,) |
|
490 | 490 | level = WARN |
|
491 | 491 | formatter = generic |
|
492 | 492 | |
|
493 | 493 | ################ |
|
494 | 494 | ## FORMATTERS ## |
|
495 | 495 | ################ |
|
496 | 496 | |
|
497 | 497 | [formatter_generic] |
|
498 | 498 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
499 | 499 | datefmt = %Y-%m-%d %H:%M:%S |
|
500 | 500 | |
|
501 | 501 | [formatter_color_formatter] |
|
502 | 502 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
503 | 503 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
504 | 504 | datefmt = %Y-%m-%d %H:%M:%S |
|
505 | 505 | |
|
506 | 506 | [formatter_color_formatter_sql] |
|
507 | 507 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
508 | 508 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
509 | 509 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,519 +1,519 b'' | |||
|
1 | 1 | ################################################################################ |
|
2 | 2 | ################################################################################ |
|
3 | 3 | # RhodeCode - Pylons environment configuration # |
|
4 | 4 | # # |
|
5 | 5 | # The %(here)s variable will be replaced with the parent directory of this file# |
|
6 | 6 | ################################################################################ |
|
7 | 7 | |
|
8 | 8 | [DEFAULT] |
|
9 | 9 | debug = true |
|
10 | 10 | pdebug = false |
|
11 | 11 | ################################################################################ |
|
12 | 12 | ## Uncomment and replace with the address which should receive ## |
|
13 | 13 | ## any error reports after application crash ## |
|
14 | 14 | ## Additionally those settings will be used by RhodeCode mailing system ## |
|
15 | 15 | ################################################################################ |
|
16 | 16 | #email_to = admin@localhost |
|
17 | 17 | #error_email_from = paste_error@localhost |
|
18 | 18 | #app_email_from = rhodecode-noreply@localhost |
|
19 | 19 | #error_message = |
|
20 | 20 | #email_prefix = [RhodeCode] |
|
21 | 21 | |
|
22 | 22 | #smtp_server = mail.server.com |
|
23 | 23 | #smtp_username = |
|
24 | 24 | #smtp_password = |
|
25 | 25 | #smtp_port = |
|
26 | 26 | #smtp_use_tls = false |
|
27 | 27 | #smtp_use_ssl = true |
|
28 | 28 | ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
|
29 | 29 | #smtp_auth = |
|
30 | 30 | |
|
31 | 31 | [server:main] |
|
32 | 32 | ## PASTE ## |
|
33 | 33 | #use = egg:Paste#http |
|
34 | 34 | ## nr of worker threads to spawn |
|
35 | 35 | #threadpool_workers = 5 |
|
36 | 36 | ## max request before thread respawn |
|
37 | 37 | #threadpool_max_requests = 10 |
|
38 | 38 | ## option to use threads of process |
|
39 | 39 | #use_threadpool = true |
|
40 | 40 | |
|
41 | 41 | ## WAITRESS ## |
|
42 | 42 | use = egg:waitress#main |
|
43 | 43 | ## number of worker threads |
|
44 | 44 | threads = 5 |
|
45 | 45 | ## MAX BODY SIZE 100GB |
|
46 | 46 | max_request_body_size = 107374182400 |
|
47 | 47 | ## use poll instead of select, fixes fd limits, may not work on old |
|
48 | 48 | ## windows systems. |
|
49 | asyncore_use_poll = True | |
|
49 | #asyncore_use_poll = True | |
|
50 | 50 | |
|
51 | 51 | ## GUNICORN ## |
|
52 | 52 | #use = egg:gunicorn#main |
|
53 | 53 | ## number of process workers. You must set `instance_id = *` when this option |
|
54 | 54 | ## is set to more than one worker |
|
55 | 55 | #workers = 1 |
|
56 | 56 | ## process name |
|
57 | 57 | #proc_name = rhodecode |
|
58 | 58 | ## type of worker class, one of sync, eventlet, gevent, tornado |
|
59 | 59 | ## recommended for bigger setup is using of of other than sync one |
|
60 | 60 | #worker-class = sync |
|
61 | 61 | #max-requests = 5 |
|
62 | 62 | |
|
63 | 63 | ## COMMON ## |
|
64 | 64 | host = 127.0.0.1 |
|
65 | 65 | port = 5000 |
|
66 | 66 | |
|
67 | 67 | ## prefix middleware for rc |
|
68 | 68 | #[filter:proxy-prefix] |
|
69 | 69 | #use = egg:PasteDeploy#prefix |
|
70 | 70 | #prefix = /<your-prefix> |
|
71 | 71 | |
|
72 | 72 | [app:main] |
|
73 | 73 | use = egg:rhodecode |
|
74 | 74 | ## enable proxy prefix middleware |
|
75 | 75 | #filter-with = proxy-prefix |
|
76 | 76 | |
|
77 | 77 | full_stack = true |
|
78 | 78 | static_files = true |
|
79 | 79 | ## Optional Languages |
|
80 | 80 | ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl |
|
81 | 81 | lang = en |
|
82 | 82 | cache_dir = %(here)s/data |
|
83 | 83 | index_dir = %(here)s/data/index |
|
84 | 84 | |
|
85 | 85 | ## perform a full repository scan on each server start, this should be |
|
86 | 86 | ## set to false after first startup, to allow faster server restarts. |
|
87 | 87 | initial_repo_scan = true |
|
88 | 88 | |
|
89 | 89 | ## uncomment and set this path to use archive download cache |
|
90 | 90 | #archive_cache_dir = /tmp/tarballcache |
|
91 | 91 | |
|
92 | 92 | ## change this to unique ID for security |
|
93 | 93 | app_instance_uuid = ${app_instance_uuid} |
|
94 | 94 | |
|
95 | 95 | ## cut off limit for large diffs (size in bytes) |
|
96 | 96 | cut_off_limit = 256000 |
|
97 | 97 | |
|
98 | 98 | ## use cache version of scm repo everywhere |
|
99 | 99 | vcs_full_cache = true |
|
100 | 100 | |
|
101 | 101 | ## force https in RhodeCode, fixes https redirects, assumes it's always https |
|
102 | 102 | force_https = false |
|
103 | 103 | |
|
104 | 104 | ## use Strict-Transport-Security headers |
|
105 | 105 | use_htsts = false |
|
106 | 106 | |
|
107 | 107 | ## number of commits stats will parse on each iteration |
|
108 | 108 | commit_parse_limit = 25 |
|
109 | 109 | |
|
110 | 110 | ## use gravatar service to display avatars |
|
111 | 111 | use_gravatar = true |
|
112 | 112 | |
|
113 | 113 | ## path to git executable |
|
114 | 114 | git_path = git |
|
115 | 115 | |
|
116 | 116 | ## git rev filter option, --all is the default filter, if you need to |
|
117 | 117 | ## hide all refs in changelog switch this to --branches --tags |
|
118 | 118 | git_rev_filter=--all |
|
119 | 119 | |
|
120 | 120 | ## RSS feed options |
|
121 | 121 | rss_cut_off_limit = 256000 |
|
122 | 122 | rss_items_per_page = 10 |
|
123 | 123 | rss_include_diff = false |
|
124 | 124 | |
|
125 | 125 | ## options for showing and identifying changesets |
|
126 | 126 | show_sha_length = 12 |
|
127 | 127 | show_revision_number = true |
|
128 | 128 | |
|
129 | 129 | ## gist URL alias, used to create nicer urls for gist. This should be an |
|
130 | 130 | ## url that does rewrites to _admin/gists/<gistid>. |
|
131 | 131 | ## example: http://gist.rhodecode.org/{gistid}. Empty means use the internal |
|
132 | 132 | ## RhodeCode url, ie. http[s]://rhodecode.server/_admin/gists/<gistid> |
|
133 | 133 | gist_alias_url = |
|
134 | 134 | |
|
135 | 135 | ## white list of API enabled controllers. This allows to add list of |
|
136 | 136 | ## controllers to which access will be enabled by api_key. eg: to enable |
|
137 | 137 | ## api access to raw_files put `FilesController:raw`, to enable access to patches |
|
138 | 138 | ## add `ChangesetController:changeset_patch`. This list should be "," separated |
|
139 | 139 | ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names |
|
140 | 140 | api_access_controllers_whitelist = |
|
141 | 141 | |
|
142 | 142 | ## alternative_gravatar_url allows you to use your own avatar server application |
|
143 | 143 | ## the following parts of the URL will be replaced |
|
144 | 144 | ## {email} user email |
|
145 | 145 | ## {md5email} md5 hash of the user email (like at gravatar.com) |
|
146 | 146 | ## {size} size of the image that is expected from the server application |
|
147 | 147 | ## {scheme} http/https from RhodeCode server |
|
148 | 148 | ## {netloc} network location from RhodeCode server |
|
149 | 149 | #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} |
|
150 | 150 | #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} |
|
151 | 151 | |
|
152 | 152 | |
|
153 | 153 | ## container auth options |
|
154 | 154 | container_auth_enabled = false |
|
155 | 155 | proxypass_auth_enabled = false |
|
156 | 156 | |
|
157 | 157 | ## default encoding used to convert from and to unicode |
|
158 | 158 | ## can be also a comma seperated list of encoding in case of mixed encodings |
|
159 | 159 | default_encoding = utf8 |
|
160 | 160 | |
|
161 | 161 | ## overwrite schema of clone url |
|
162 | 162 | ## available vars: |
|
163 | 163 | ## scheme - http/https |
|
164 | 164 | ## user - current user |
|
165 | 165 | ## pass - password |
|
166 | 166 | ## netloc - network location |
|
167 | 167 | ## path - usually repo_name |
|
168 | 168 | |
|
169 | 169 | #clone_uri = {scheme}://{user}{pass}{netloc}{path} |
|
170 | 170 | |
|
171 | 171 | ## issue tracking mapping for commits messages |
|
172 | 172 | ## comment out issue_pat, issue_server, issue_prefix to enable |
|
173 | 173 | |
|
174 | 174 | ## pattern to get the issues from commit messages |
|
175 | 175 | ## default one used here is #<numbers> with a regex passive group for `#` |
|
176 | 176 | ## {id} will be all groups matched from this pattern |
|
177 | 177 | |
|
178 | 178 | issue_pat = (?:\s*#)(\d+) |
|
179 | 179 | |
|
180 | 180 | ## server url to the issue, each {id} will be replaced with match |
|
181 | 181 | ## fetched from the regex and {repo} is replaced with full repository name |
|
182 | 182 | ## including groups {repo_name} is replaced with just name of repo |
|
183 | 183 | |
|
184 | 184 | issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
|
185 | 185 | |
|
186 | 186 | ## prefix to add to link to indicate it's an url |
|
187 | 187 | ## #314 will be replaced by <issue_prefix><id> |
|
188 | 188 | |
|
189 | 189 | issue_prefix = # |
|
190 | 190 | |
|
191 | 191 | ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify |
|
192 | 192 | ## multiple patterns, to other issues server, wiki or others |
|
193 | 193 | ## below an example how to create a wiki pattern |
|
194 | 194 | # #wiki-some-id -> https://mywiki.com/some-id |
|
195 | 195 | |
|
196 | 196 | #issue_pat_wiki = (?:wiki-)(.+) |
|
197 | 197 | #issue_server_link_wiki = https://mywiki.com/{id} |
|
198 | 198 | #issue_prefix_wiki = WIKI- |
|
199 | 199 | |
|
200 | 200 | |
|
201 | 201 | ## instance-id prefix |
|
202 | 202 | ## a prefix key for this instance used for cache invalidation when running |
|
203 | 203 | ## multiple instances of rhodecode, make sure it's globally unique for |
|
204 | 204 | ## all running rhodecode instances. Leave empty if you don't use it |
|
205 | 205 | instance_id = |
|
206 | 206 | |
|
207 | 207 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
208 | 208 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
209 | 209 | ## handling that. Set this variable to 403 to return HTTPForbidden |
|
210 | 210 | auth_ret_code = |
|
211 | 211 | |
|
212 | 212 | ## locking return code. When repository is locked return this HTTP code. 2XX |
|
213 | 213 | ## codes don't break the transactions while 4XX codes do |
|
214 | 214 | lock_ret_code = 423 |
|
215 | 215 | |
|
216 | 216 | allow_repo_location_change = True |
|
217 | 217 | |
|
218 | 218 | #################################### |
|
219 | 219 | ### CELERY CONFIG #### |
|
220 | 220 | #################################### |
|
221 | 221 | use_celery = false |
|
222 | 222 | broker.host = localhost |
|
223 | 223 | broker.vhost = rabbitmqhost |
|
224 | 224 | broker.port = 5672 |
|
225 | 225 | broker.user = rabbitmq |
|
226 | 226 | broker.password = qweqwe |
|
227 | 227 | |
|
228 | 228 | celery.imports = rhodecode.lib.celerylib.tasks |
|
229 | 229 | |
|
230 | 230 | celery.result.backend = amqp |
|
231 | 231 | celery.result.dburi = amqp:// |
|
232 | 232 | celery.result.serialier = json |
|
233 | 233 | |
|
234 | 234 | #celery.send.task.error.emails = true |
|
235 | 235 | #celery.amqp.task.result.expires = 18000 |
|
236 | 236 | |
|
237 | 237 | celeryd.concurrency = 2 |
|
238 | 238 | #celeryd.log.file = celeryd.log |
|
239 | 239 | celeryd.log.level = debug |
|
240 | 240 | celeryd.max.tasks.per.child = 1 |
|
241 | 241 | |
|
242 | 242 | ## tasks will never be sent to the queue, but executed locally instead. |
|
243 | 243 | celery.always.eager = false |
|
244 | 244 | |
|
245 | 245 | #################################### |
|
246 | 246 | ### BEAKER CACHE #### |
|
247 | 247 | #################################### |
|
248 | 248 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
249 | 249 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
250 | 250 | |
|
251 | 251 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
252 | 252 | |
|
253 | 253 | beaker.cache.super_short_term.type=memory |
|
254 | 254 | beaker.cache.super_short_term.expire=10 |
|
255 | 255 | beaker.cache.super_short_term.key_length = 256 |
|
256 | 256 | |
|
257 | 257 | beaker.cache.short_term.type=memory |
|
258 | 258 | beaker.cache.short_term.expire=60 |
|
259 | 259 | beaker.cache.short_term.key_length = 256 |
|
260 | 260 | |
|
261 | 261 | beaker.cache.long_term.type=memory |
|
262 | 262 | beaker.cache.long_term.expire=36000 |
|
263 | 263 | beaker.cache.long_term.key_length = 256 |
|
264 | 264 | |
|
265 | 265 | beaker.cache.sql_cache_short.type=memory |
|
266 | 266 | beaker.cache.sql_cache_short.expire=10 |
|
267 | 267 | beaker.cache.sql_cache_short.key_length = 256 |
|
268 | 268 | |
|
269 | 269 | beaker.cache.sql_cache_med.type=memory |
|
270 | 270 | beaker.cache.sql_cache_med.expire=360 |
|
271 | 271 | beaker.cache.sql_cache_med.key_length = 256 |
|
272 | 272 | |
|
273 | 273 | beaker.cache.sql_cache_long.type=file |
|
274 | 274 | beaker.cache.sql_cache_long.expire=3600 |
|
275 | 275 | beaker.cache.sql_cache_long.key_length = 256 |
|
276 | 276 | |
|
277 | 277 | #################################### |
|
278 | 278 | ### BEAKER SESSION #### |
|
279 | 279 | #################################### |
|
280 | 280 | ## Type of storage used for the session, current types are |
|
281 | 281 | ## dbm, file, memcached, database, and memory. |
|
282 | 282 | ## The storage uses the Container API |
|
283 | 283 | ## that is also used by the cache system. |
|
284 | 284 | |
|
285 | 285 | ## db session ## |
|
286 | 286 | #beaker.session.type = ext:database |
|
287 | 287 | #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
|
288 | 288 | #beaker.session.table_name = db_session |
|
289 | 289 | |
|
290 | 290 | ## encrypted cookie client side session, good for many instances ## |
|
291 | 291 | #beaker.session.type = cookie |
|
292 | 292 | |
|
293 | 293 | ## file based cookies (default) ## |
|
294 | 294 | #beaker.session.type = file |
|
295 | 295 | |
|
296 | 296 | |
|
297 | 297 | beaker.session.key = rhodecode |
|
298 | 298 | ## secure cookie requires AES python libraries |
|
299 | 299 | #beaker.session.encrypt_key = <key_for_encryption> |
|
300 | 300 | #beaker.session.validate_key = <validation_key> |
|
301 | 301 | |
|
302 | 302 | ## sets session as invalid if it haven't been accessed for given amount of time |
|
303 | 303 | beaker.session.timeout = 2592000 |
|
304 | 304 | beaker.session.httponly = true |
|
305 | 305 | #beaker.session.cookie_path = /<your-prefix> |
|
306 | 306 | |
|
307 | 307 | ## uncomment for https secure cookie |
|
308 | 308 | beaker.session.secure = false |
|
309 | 309 | |
|
310 | 310 | ## auto save the session to not to use .save() |
|
311 | 311 | beaker.session.auto = False |
|
312 | 312 | |
|
313 | 313 | ## default cookie expiration time in seconds `true` expire at browser close ## |
|
314 | 314 | #beaker.session.cookie_expires = 3600 |
|
315 | 315 | |
|
316 | 316 | |
|
317 | 317 | ############################ |
|
318 | 318 | ## ERROR HANDLING SYSTEMS ## |
|
319 | 319 | ############################ |
|
320 | 320 | |
|
321 | 321 | #################### |
|
322 | 322 | ### [errormator] ### |
|
323 | 323 | #################### |
|
324 | 324 | |
|
325 | 325 | ## Errormator is tailored to work with RhodeCode, see |
|
326 | 326 | ## http://errormator.com for details how to obtain an account |
|
327 | 327 | ## you must install python package `errormator_client` to make it work |
|
328 | 328 | |
|
329 | 329 | ## errormator enabled |
|
330 | 330 | errormator = false |
|
331 | 331 | |
|
332 | 332 | errormator.server_url = https://api.errormator.com |
|
333 | 333 | errormator.api_key = YOUR_API_KEY |
|
334 | 334 | |
|
335 | 335 | ## TWEAK AMOUNT OF INFO SENT HERE |
|
336 | 336 | |
|
337 | 337 | ## enables 404 error logging (default False) |
|
338 | 338 | errormator.report_404 = false |
|
339 | 339 | |
|
340 | 340 | ## time in seconds after request is considered being slow (default 1) |
|
341 | 341 | errormator.slow_request_time = 1 |
|
342 | 342 | |
|
343 | 343 | ## record slow requests in application |
|
344 | 344 | ## (needs to be enabled for slow datastore recording and time tracking) |
|
345 | 345 | errormator.slow_requests = true |
|
346 | 346 | |
|
347 | 347 | ## enable hooking to application loggers |
|
348 | 348 | # errormator.logging = true |
|
349 | 349 | |
|
350 | 350 | ## minimum log level for log capture |
|
351 | 351 | # errormator.logging.level = WARNING |
|
352 | 352 | |
|
353 | 353 | ## send logs only from erroneous/slow requests |
|
354 | 354 | ## (saves API quota for intensive logging) |
|
355 | 355 | errormator.logging_on_error = false |
|
356 | 356 | |
|
357 | 357 | ## list of additonal keywords that should be grabbed from environ object |
|
358 | 358 | ## can be string with comma separated list of words in lowercase |
|
359 | 359 | ## (by default client will always send following info: |
|
360 | 360 | ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that |
|
361 | 361 | ## start with HTTP* this list be extended with additional keywords here |
|
362 | 362 | errormator.environ_keys_whitelist = |
|
363 | 363 | |
|
364 | 364 | |
|
365 | 365 | ## list of keywords that should be blanked from request object |
|
366 | 366 | ## can be string with comma separated list of words in lowercase |
|
367 | 367 | ## (by default client will always blank keys that contain following words |
|
368 | 368 | ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' |
|
369 | 369 | ## this list be extended with additional keywords set here |
|
370 | 370 | errormator.request_keys_blacklist = |
|
371 | 371 | |
|
372 | 372 | |
|
373 | 373 | ## list of namespaces that should be ignores when gathering log entries |
|
374 | 374 | ## can be string with comma separated list of namespaces |
|
375 | 375 | ## (by default the client ignores own entries: errormator_client.client) |
|
376 | 376 | errormator.log_namespace_blacklist = |
|
377 | 377 | |
|
378 | 378 | |
|
379 | 379 | ################ |
|
380 | 380 | ### [sentry] ### |
|
381 | 381 | ################ |
|
382 | 382 | |
|
383 | 383 | ## sentry is a alternative open source error aggregator |
|
384 | 384 | ## you must install python packages `sentry` and `raven` to enable |
|
385 | 385 | |
|
386 | 386 | sentry.dsn = YOUR_DNS |
|
387 | 387 | sentry.servers = |
|
388 | 388 | sentry.name = |
|
389 | 389 | sentry.key = |
|
390 | 390 | sentry.public_key = |
|
391 | 391 | sentry.secret_key = |
|
392 | 392 | sentry.project = |
|
393 | 393 | sentry.site = |
|
394 | 394 | sentry.include_paths = |
|
395 | 395 | sentry.exclude_paths = |
|
396 | 396 | |
|
397 | 397 | |
|
398 | 398 | ################################################################################ |
|
399 | 399 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
400 | 400 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
401 | 401 | ## execute malicious code after an exception is raised. ## |
|
402 | 402 | ################################################################################ |
|
403 | 403 | set debug = false |
|
404 | 404 | |
|
405 | 405 | ################################## |
|
406 | 406 | ### LOGVIEW CONFIG ### |
|
407 | 407 | ################################## |
|
408 | 408 | logview.sqlalchemy = #faa |
|
409 | 409 | logview.pylons.templating = #bfb |
|
410 | 410 | logview.pylons.util = #eee |
|
411 | 411 | |
|
412 | 412 | ######################################################### |
|
413 | 413 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
414 | 414 | ######################################################### |
|
415 | 415 | |
|
416 | 416 | # SQLITE [default] |
|
417 | 417 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db |
|
418 | 418 | |
|
419 | 419 | # POSTGRESQL |
|
420 | 420 | # sqlalchemy.db1.url = postgresql://user:pass@localhost/rhodecode |
|
421 | 421 | |
|
422 | 422 | # MySQL |
|
423 | 423 | # sqlalchemy.db1.url = mysql://user:pass@localhost/rhodecode |
|
424 | 424 | |
|
425 | 425 | # see sqlalchemy docs for others |
|
426 | 426 | |
|
427 | 427 | sqlalchemy.db1.echo = false |
|
428 | 428 | sqlalchemy.db1.pool_recycle = 3600 |
|
429 | 429 | sqlalchemy.db1.convert_unicode = true |
|
430 | 430 | |
|
431 | 431 | ################################ |
|
432 | 432 | ### LOGGING CONFIGURATION #### |
|
433 | 433 | ################################ |
|
434 | 434 | [loggers] |
|
435 | 435 | keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
|
436 | 436 | |
|
437 | 437 | [handlers] |
|
438 | 438 | keys = console, console_sql |
|
439 | 439 | |
|
440 | 440 | [formatters] |
|
441 | 441 | keys = generic, color_formatter, color_formatter_sql |
|
442 | 442 | |
|
443 | 443 | ############# |
|
444 | 444 | ## LOGGERS ## |
|
445 | 445 | ############# |
|
446 | 446 | [logger_root] |
|
447 | 447 | level = NOTSET |
|
448 | 448 | handlers = console |
|
449 | 449 | |
|
450 | 450 | [logger_routes] |
|
451 | 451 | level = DEBUG |
|
452 | 452 | handlers = |
|
453 | 453 | qualname = routes.middleware |
|
454 | 454 | ## "level = DEBUG" logs the route matched and routing variables. |
|
455 | 455 | propagate = 1 |
|
456 | 456 | |
|
457 | 457 | [logger_beaker] |
|
458 | 458 | level = DEBUG |
|
459 | 459 | handlers = |
|
460 | 460 | qualname = beaker.container |
|
461 | 461 | propagate = 1 |
|
462 | 462 | |
|
463 | 463 | [logger_templates] |
|
464 | 464 | level = INFO |
|
465 | 465 | handlers = |
|
466 | 466 | qualname = pylons.templating |
|
467 | 467 | propagate = 1 |
|
468 | 468 | |
|
469 | 469 | [logger_rhodecode] |
|
470 | 470 | level = DEBUG |
|
471 | 471 | handlers = |
|
472 | 472 | qualname = rhodecode |
|
473 | 473 | propagate = 1 |
|
474 | 474 | |
|
475 | 475 | [logger_sqlalchemy] |
|
476 | 476 | level = INFO |
|
477 | 477 | handlers = console_sql |
|
478 | 478 | qualname = sqlalchemy.engine |
|
479 | 479 | propagate = 0 |
|
480 | 480 | |
|
481 | 481 | [logger_whoosh_indexer] |
|
482 | 482 | level = DEBUG |
|
483 | 483 | handlers = |
|
484 | 484 | qualname = whoosh_indexer |
|
485 | 485 | propagate = 1 |
|
486 | 486 | |
|
487 | 487 | ############## |
|
488 | 488 | ## HANDLERS ## |
|
489 | 489 | ############## |
|
490 | 490 | |
|
491 | 491 | [handler_console] |
|
492 | 492 | class = StreamHandler |
|
493 | 493 | args = (sys.stderr,) |
|
494 | 494 | level = INFO |
|
495 | 495 | formatter = generic |
|
496 | 496 | |
|
497 | 497 | [handler_console_sql] |
|
498 | 498 | class = StreamHandler |
|
499 | 499 | args = (sys.stderr,) |
|
500 | 500 | level = WARN |
|
501 | 501 | formatter = generic |
|
502 | 502 | |
|
503 | 503 | ################ |
|
504 | 504 | ## FORMATTERS ## |
|
505 | 505 | ################ |
|
506 | 506 | |
|
507 | 507 | [formatter_generic] |
|
508 | 508 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
509 | 509 | datefmt = %Y-%m-%d %H:%M:%S |
|
510 | 510 | |
|
511 | 511 | [formatter_color_formatter] |
|
512 | 512 | class=rhodecode.lib.colored_formatter.ColorFormatter |
|
513 | 513 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
514 | 514 | datefmt = %Y-%m-%d %H:%M:%S |
|
515 | 515 | |
|
516 | 516 | [formatter_color_formatter_sql] |
|
517 | 517 | class=rhodecode.lib.colored_formatter.ColorFormatterSql |
|
518 | 518 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
519 | 519 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now