comparison test.ini @ 3557:58dcef7eef03 beta

Implemented show_id function that is a configurable way to display sha hashes in the changelog.
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 21 Mar 2013 21:03:22 +0100
parents c0ac34b8eb07
children c04d1d9b6193
comparison
equal deleted inserted replaced
3556:4358b1b9307d 3557:58dcef7eef03
23 #smtp_username = 23 #smtp_username =
24 #smtp_password = 24 #smtp_password =
25 #smtp_port = 25 #smtp_port =
26 #smtp_use_tls = false 26 #smtp_use_tls = false
27 #smtp_use_ssl = true 27 #smtp_use_ssl = true
28 # Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) 28 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.)
29 #smtp_auth = 29 #smtp_auth =
30 30
31 [server:main] 31 [server:main]
32 ## PASTE 32 ## PASTE
33 ##nr of threads to spawn 33 ## nr of threads to spawn
34 #threadpool_workers = 5 34 #threadpool_workers = 5
35 35
36 ##max request before thread respawn 36 ## max request before thread respawn
37 #threadpool_max_requests = 10 37 #threadpool_max_requests = 10
38 38
39 ##option to use threads of process 39 ## option to use threads of process
40 #use_threadpool = true 40 #use_threadpool = true
41 41
42 #use = egg:Paste#http 42 #use = egg:Paste#http
43 43
44 #WAITRESS 44 ## WAITRESS
45 threads = 5 45 threads = 5
46 #100GB 46 ## 100GB
47 max_request_body_size = 107374182400 47 max_request_body_size = 107374182400
48 use = egg:waitress#main 48 use = egg:waitress#main
49 49
50 host = 127.0.0.1 50 host = 127.0.0.1
51 port = 5000 51 port = 5000
52 52
53 [filter:proxy-prefix] 53 ## prefix middleware for rc
54 # prefix middleware for rc 54 #[filter:proxy-prefix]
55 use = egg:PasteDeploy#prefix 55 #use = egg:PasteDeploy#prefix
56 prefix = /<your-prefix> 56 #prefix = /<your-prefix>
57 57
58 [app:main] 58 [app:main]
59 use = egg:rhodecode 59 use = egg:rhodecode
60 ## enable proxy prefix middleware
60 #filter-with = proxy-prefix 61 #filter-with = proxy-prefix
62
61 full_stack = true 63 full_stack = true
62 static_files = true 64 static_files = true
63 # Optional Languages 65 ## Optional Languages
64 # en, fr, ja, pt_BR, zh_CN, zh_TW, pl 66 ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl
65 lang = en 67 lang = en
66 cache_dir = /tmp/rc/data 68 cache_dir = /tmp/rc/data
67 index_dir = /tmp/rc/index 69 index_dir = /tmp/rc/index
68 # set this path to use archive download cache 70
69 #archive_cache_dir = /tmp/rhodecode_tarballcache 71 ## uncomment and set this path to use archive download cache
70 app_instance_uuid = develop-test 72 #archive_cache_dir = /tmp/tarballcache
73
74 ## change this to unique ID for security
75 app_instance_uuid = rc-production
76
77 ## cut off limit for large diffs (size in bytes)
71 cut_off_limit = 256000 78 cut_off_limit = 256000
72 vcs_full_cache = False 79
73 # force https in RhodeCode, fixes https redirects, assumes it's always https 80 ## use cache version of scm repo everywhere
81 vcs_full_cache = false
82
83 ## force https in RhodeCode, fixes https redirects, assumes it's always https
74 force_https = false 84 force_https = false
75 # use Strict-Transport-Security headers 85
86 ## use Strict-Transport-Security headers
76 use_htsts = false 87 use_htsts = false
88
89 ## number of commits stats will parse on each iteration
77 commit_parse_limit = 25 90 commit_parse_limit = 25
78 # number of items displayed in lightweight dashboard before paginating 91
92 ## number of items displayed in lightweight dashboard before paginating is shown
79 dashboard_items = 100 93 dashboard_items = 100
94
95 ## use gravatar service to display avatars
80 use_gravatar = true 96 use_gravatar = true
81 97
82 # path to git executable 98 ## path to git executable
83 git_path = git 99 git_path = git
84 100
85 ## RSS feed options 101 ## RSS feed options
86
87 rss_cut_off_limit = 256000 102 rss_cut_off_limit = 256000
88 rss_items_per_page = 10 103 rss_items_per_page = 10
89 rss_include_diff = false 104 rss_include_diff = false
105
106 ## show hash options for changelog
107 sha_len = 12
108 sha_rev = true
90 109
91 110
92 ## alternative_gravatar_url allows you to use your own avatar server application 111 ## alternative_gravatar_url allows you to use your own avatar server application
93 ## the following parts of the URL will be replaced 112 ## the following parts of the URL will be replaced
94 ## {email} user email 113 ## {email} user email
97 ## {scheme} http/https from RhodeCode server 116 ## {scheme} http/https from RhodeCode server
98 ## {netloc} network location from RhodeCode server 117 ## {netloc} network location from RhodeCode server
99 #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} 118 #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size}
100 #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} 119 #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size}
101 120
121
122 ## container auth options
102 container_auth_enabled = false 123 container_auth_enabled = false
103 proxypass_auth_enabled = false 124 proxypass_auth_enabled = false
125
104 ## default encoding used to convert from and to unicode 126 ## default encoding used to convert from and to unicode
105 ## can be also a comma seperated list of encoding in case of mixed encodings 127 ## can be also a comma seperated list of encoding in case of mixed encodings
106 default_encoding = utf8 128 default_encoding = utf8
107 129
108 ## overwrite schema of clone url 130 ## overwrite schema of clone url
154 ## alternative return HTTP header for failed authentication. Default HTTP 176 ## alternative return HTTP header for failed authentication. Default HTTP
155 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with 177 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with
156 ## handling that. Set this variable to 403 to return HTTPForbidden 178 ## handling that. Set this variable to 403 to return HTTPForbidden
157 auth_ret_code = 179 auth_ret_code =
158 180
181 ## locking return code. When repository is locked return this HTTP code. 2XX
182 ## codes don't break the transactions while 4XX codes do
183 lock_ret_code = 423
184
185
159 #################################### 186 ####################################
160 ### CELERY CONFIG #### 187 ### CELERY CONFIG ####
161 #################################### 188 ####################################
162 use_celery = false 189 use_celery = false
163 broker.host = localhost 190 broker.host = localhost
178 celeryd.concurrency = 2 205 celeryd.concurrency = 2
179 #celeryd.log.file = celeryd.log 206 #celeryd.log.file = celeryd.log
180 celeryd.log.level = debug 207 celeryd.log.level = debug
181 celeryd.max.tasks.per.child = 1 208 celeryd.max.tasks.per.child = 1
182 209
183 #tasks will never be sent to the queue, but executed locally instead. 210 ## tasks will never be sent to the queue, but executed locally instead.
184 celery.always.eager = false 211 celery.always.eager = false
185 212
186 #################################### 213 ####################################
187 ### BEAKER CACHE #### 214 ### BEAKER CACHE ####
188 #################################### 215 ####################################
234 ## file based cookies (default) ## 261 ## file based cookies (default) ##
235 #beaker.session.type = file 262 #beaker.session.type = file
236 263
237 264
238 beaker.session.key = rhodecode 265 beaker.session.key = rhodecode
239 ## secure cookie requires AES python libraries ## 266 ## secure cookie requires AES python libraries
240 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu 267 #beaker.session.encrypt_key = <key_for_encryption>
241 #beaker.session.validate_key = 9712sds2212c--zxc123 268 #beaker.session.validate_key = <validation_key>
269
242 ## sets session as invalid if it haven't been accessed for given amount of time 270 ## sets session as invalid if it haven't been accessed for given amount of time
243 beaker.session.timeout = 3600 271 beaker.session.timeout = 3600
244 beaker.session.httponly = true 272 beaker.session.httponly = true
245 #beaker.session.cookie_path = /<your-prefix> 273 #beaker.session.cookie_path = /<your-prefix>
246 274
247 ## uncomment for https secure cookie ## 275 ## uncomment for https secure cookie
248 beaker.session.secure = false 276 beaker.session.secure = false
249 277
250 ## auto save the session to not to use .save() ## 278 ## auto save the session to not to use .save()
251 beaker.session.auto = False 279 beaker.session.auto = False
252 280
253 ## default cookie expiration time in seconds `true` expire at browser close ## 281 ## default cookie expiration time in seconds `true` expire at browser close ##
254 #beaker.session.cookie_expires = 3600 282 #beaker.session.cookie_expires = 3600
255 283
260 288
261 #################### 289 ####################
262 ### [errormator] ### 290 ### [errormator] ###
263 #################### 291 ####################
264 292
265 # Errormator is tailored to work with RhodeCode, see 293 ## Errormator is tailored to work with RhodeCode, see
266 # http://errormator.com for details how to obtain an account 294 ## http://errormator.com for details how to obtain an account
267 # you must install python package `errormator_client` to make it work 295 ## you must install python package `errormator_client` to make it work
268 296
269 # errormator enabled 297 ## errormator enabled
270 errormator = true 298 errormator = false
271 299
272 errormator.server_url = https://api.errormator.com 300 errormator.server_url = https://api.errormator.com
273 errormator.api_key = YOUR_API_KEY 301 errormator.api_key = YOUR_API_KEY
274 302
275 # TWEAK AMOUNT OF INFO SENT HERE 303 ## TWEAK AMOUNT OF INFO SENT HERE
276 304
277 # enables 404 error logging (default False) 305 ## enables 404 error logging (default False)
278 errormator.report_404 = false 306 errormator.report_404 = false
279 307
280 # time in seconds after request is considered being slow (default 1) 308 ## time in seconds after request is considered being slow (default 1)
281 errormator.slow_request_time = 1 309 errormator.slow_request_time = 1
282 310
283 # record slow requests in application 311 ## record slow requests in application
284 # (needs to be enabled for slow datastore recording and time tracking) 312 ## (needs to be enabled for slow datastore recording and time tracking)
285 errormator.slow_requests = true 313 errormator.slow_requests = true
286 314
287 # enable hooking to application loggers 315 ## enable hooking to application loggers
288 # errormator.logging = true 316 # errormator.logging = true
289 317
290 # minimum log level for log capture 318 ## minimum log level for log capture
291 # errormator.logging.level = WARNING 319 # errormator.logging.level = WARNING
292 320
293 # send logs only from erroneous/slow requests 321 ## send logs only from erroneous/slow requests
294 # (saves API quota for intensive logging) 322 ## (saves API quota for intensive logging)
295 errormator.logging_on_error = false 323 errormator.logging_on_error = false
296 324
297 # list of additonal keywords that should be grabbed from environ object 325 ## list of additonal keywords that should be grabbed from environ object
298 # can be string with comma separated list of words in lowercase 326 ## can be string with comma separated list of words in lowercase
299 # (by default client will always send following info: 327 ## (by default client will always send following info:
300 # 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that 328 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
301 # start with HTTP* this list be extended with additional keywords here 329 ## start with HTTP* this list be extended with additional keywords here
302 errormator.environ_keys_whitelist = 330 errormator.environ_keys_whitelist =
303 331
304 332
305 # list of keywords that should be blanked from request object 333 ## list of keywords that should be blanked from request object
306 # can be string with comma separated list of words in lowercase 334 ## can be string with comma separated list of words in lowercase
307 # (by default client will always blank keys that contain following words 335 ## (by default client will always blank keys that contain following words
308 # 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' 336 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
309 # this list be extended with additional keywords set here 337 ## this list be extended with additional keywords set here
310 errormator.request_keys_blacklist = 338 errormator.request_keys_blacklist =
311 339
312 340
313 # list of namespaces that should be ignores when gathering log entries 341 ## list of namespaces that should be ignores when gathering log entries
314 # can be string with comma separated list of namespaces 342 ## can be string with comma separated list of namespaces
315 # (by default the client ignores own entries: errormator_client.client) 343 ## (by default the client ignores own entries: errormator_client.client)
316 errormator.log_namespace_blacklist = 344 errormator.log_namespace_blacklist =
317 345
318 346
319 ################ 347 ################
320 ### [sentry] ### 348 ### [sentry] ###
321 ################ 349 ################
322 350
323 # sentry is a alternative open source error aggregator 351 ## sentry is a alternative open source error aggregator
324 # you must install python packages `sentry` and `raven` to enable 352 ## you must install python packages `sentry` and `raven` to enable
325 353
326 sentry.dsn = YOUR_DNS 354 sentry.dsn = YOUR_DNS
327 sentry.servers = 355 sentry.servers =
328 sentry.name = 356 sentry.name =
329 sentry.key = 357 sentry.key =
364 ################################ 392 ################################
365 [loggers] 393 [loggers]
366 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer 394 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer
367 395
368 [handlers] 396 [handlers]
369 keys = console 397 keys = console, console_sql
370 398
371 [formatters] 399 [formatters]
372 keys = generic, color_formatter 400 keys = generic, color_formatter, color_formatter_sql
373 401
374 ############# 402 #############
375 ## LOGGERS ## 403 ## LOGGERS ##
376 ############# 404 #############
377 [logger_root] 405 [logger_root]
380 408
381 [logger_routes] 409 [logger_routes]
382 level = DEBUG 410 level = DEBUG
383 handlers = 411 handlers =
384 qualname = routes.middleware 412 qualname = routes.middleware
385 # "level = DEBUG" logs the route matched and routing variables. 413 ## "level = DEBUG" logs the route matched and routing variables.
386 propagate = 1 414 propagate = 1
387 415
388 [logger_beaker] 416 [logger_beaker]
389 level = DEBUG 417 level = DEBUG
390 handlers = 418 handlers =
423 class = StreamHandler 451 class = StreamHandler
424 args = (sys.stderr,) 452 args = (sys.stderr,)
425 level = NOTSET 453 level = NOTSET
426 formatter = generic 454 formatter = generic
427 455
456 [handler_console_sql]
457 class = StreamHandler
458 args = (sys.stderr,)
459 level = WARN
460 formatter = generic
461
428 ################ 462 ################
429 ## FORMATTERS ## 463 ## FORMATTERS ##
430 ################ 464 ################
431 465
432 [formatter_generic] 466 [formatter_generic]
435 469
436 [formatter_color_formatter] 470 [formatter_color_formatter]
437 class=rhodecode.lib.colored_formatter.ColorFormatter 471 class=rhodecode.lib.colored_formatter.ColorFormatter
438 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s 472 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
439 datefmt = %Y-%m-%d %H:%M:%S 473 datefmt = %Y-%m-%d %H:%M:%S
474
475 [formatter_color_formatter_sql]
476 class=rhodecode.lib.colored_formatter.ColorFormatterSql
477 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
478 datefmt = %Y-%m-%d %H:%M:%S