Mercurial > kallithea
comparison test.ini @ 3700:3563bb7b4b82
merge with rc1
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 07 Apr 2013 18:37:22 +0200 |
parents | efe23d6c178c 659bd922520e |
children | 5293d4bbb1ea |
comparison
equal
deleted
inserted
replaced
3525:0cef54d34605 | 3700:3563bb7b4b82 |
---|---|
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 ##nr of threads to spawn | 32 ## PASTE |
33 threadpool_workers = 5 | 33 ## nr of threads to spawn |
34 | 34 #threadpool_workers = 5 |
35 ##max request before thread respawn | 35 |
36 threadpool_max_requests = 2 | 36 ## max request before thread respawn |
37 | 37 #threadpool_max_requests = 10 |
38 ##option to use threads of process | 38 |
39 use_threadpool = true | 39 ## option to use threads of process |
40 | 40 #use_threadpool = true |
41 use = egg:Paste#http | 41 |
42 #use = egg:waitress#main | 42 #use = egg:Paste#http |
43 | |
44 ## WAITRESS | |
45 threads = 5 | |
46 ## 100GB | |
47 max_request_body_size = 107374182400 | |
48 use = egg:waitress#main | |
49 | |
43 host = 127.0.0.1 | 50 host = 127.0.0.1 |
44 port = 5000 | 51 port = 5000 |
45 | 52 |
53 ## prefix middleware for rc | |
54 #[filter:proxy-prefix] | |
55 #use = egg:PasteDeploy#prefix | |
56 #prefix = /<your-prefix> | |
57 | |
46 [app:main] | 58 [app:main] |
47 use = egg:rhodecode | 59 use = egg:rhodecode |
60 ## enable proxy prefix middleware | |
61 #filter-with = proxy-prefix | |
62 | |
48 full_stack = true | 63 full_stack = true |
49 static_files = true | 64 static_files = true |
50 lang=en | 65 ## Optional Languages |
66 ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
67 lang = en | |
51 cache_dir = /tmp/rc/data | 68 cache_dir = /tmp/rc/data |
52 index_dir = /tmp/rc/index | 69 index_dir = /tmp/rc/index |
53 app_instance_uuid = develop-test | 70 |
71 ## uncomment and set this path to use archive download cache | |
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) | |
54 cut_off_limit = 256000 | 78 cut_off_limit = 256000 |
79 | |
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 | |
55 force_https = false | 84 force_https = false |
85 | |
86 ## use Strict-Transport-Security headers | |
87 use_htsts = false | |
88 | |
89 ## number of commits stats will parse on each iteration | |
56 commit_parse_limit = 25 | 90 commit_parse_limit = 25 |
91 | |
92 ## number of items displayed in lightweight dashboard before paginating is shown | |
93 dashboard_items = 100 | |
94 | |
95 ## use gravatar service to display avatars | |
57 use_gravatar = true | 96 use_gravatar = true |
97 | |
98 ## path to git executable | |
99 git_path = git | |
100 | |
101 ## git rev filter option, --all is the default filter, if you need to | |
102 ## hide all refs in changelog switch this to --branches --tags | |
103 git_rev_filter=--all | |
104 | |
105 ## RSS feed options | |
106 rss_cut_off_limit = 256000 | |
107 rss_items_per_page = 10 | |
108 rss_include_diff = false | |
109 | |
110 ## options for showing and identifying changesets | |
111 show_sha_length = 12 | |
112 show_revision_number = true | |
113 | |
114 | |
115 ## alternative_gravatar_url allows you to use your own avatar server application | |
116 ## the following parts of the URL will be replaced | |
117 ## {email} user email | |
118 ## {md5email} md5 hash of the user email (like at gravatar.com) | |
119 ## {size} size of the image that is expected from the server application | |
120 ## {scheme} http/https from RhodeCode server | |
121 ## {netloc} network location from RhodeCode server | |
122 #alternative_gravatar_url = http://myavatarserver.com/getbyemail/{email}/{size} | |
123 #alternative_gravatar_url = http://myavatarserver.com/getbymd5/{md5email}?s={size} | |
124 | |
125 | |
126 ## container auth options | |
58 container_auth_enabled = false | 127 container_auth_enabled = false |
59 proxypass_auth_enabled = false | 128 proxypass_auth_enabled = false |
60 | 129 |
130 ## default encoding used to convert from and to unicode | |
131 ## can be also a comma seperated list of encoding in case of mixed encodings | |
132 default_encoding = utf8 | |
61 | 133 |
62 ## overwrite schema of clone url | 134 ## overwrite schema of clone url |
63 ## available vars: | 135 ## available vars: |
64 ## scheme - http/https | 136 ## scheme - http/https |
65 ## user - current user | 137 ## user - current user |
77 ## {id} will be all groups matched from this pattern | 149 ## {id} will be all groups matched from this pattern |
78 | 150 |
79 issue_pat = (?:\s*#)(\d+) | 151 issue_pat = (?:\s*#)(\d+) |
80 | 152 |
81 ## server url to the issue, each {id} will be replaced with match | 153 ## server url to the issue, each {id} will be replaced with match |
82 ## fetched from the regex and {repo} is replaced with repository name | 154 ## fetched from the regex and {repo} is replaced with full repository name |
155 ## including groups {repo_name} is replaced with just name of repo | |
83 | 156 |
84 issue_server_link = https://myissueserver.com/{repo}/issue/{id} | 157 issue_server_link = https://myissueserver.com/{repo}/issue/{id} |
85 | 158 |
86 ## prefix to add to link to indicate it's an url | 159 ## prefix to add to link to indicate it's an url |
87 ## #314 will be replaced by <issue_prefix><id> | 160 ## #314 will be replaced by <issue_prefix><id> |
88 | 161 |
89 issue_prefix = # | 162 issue_prefix = # |
163 | |
164 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify | |
165 ## multiple patterns, to other issues server, wiki or others | |
166 ## below an example how to create a wiki pattern | |
167 # #wiki-some-id -> https://mywiki.com/some-id | |
168 | |
169 #issue_pat_wiki = (?:wiki-)(.+) | |
170 #issue_server_link_wiki = https://mywiki.com/{id} | |
171 #issue_prefix_wiki = WIKI- | |
172 | |
90 | 173 |
91 ## instance-id prefix | 174 ## instance-id prefix |
92 ## a prefix key for this instance used for cache invalidation when running | 175 ## a prefix key for this instance used for cache invalidation when running |
93 ## multiple instances of rhodecode, make sure it's globally unique for | 176 ## multiple instances of rhodecode, make sure it's globally unique for |
94 ## all running rhodecode instances. Leave empty if you don't use it | 177 ## all running rhodecode instances. Leave empty if you don't use it |
95 instance_id = | 178 instance_id = |
96 | 179 |
97 ## alternative return HTTP header for failed authentication. Default HTTP | 180 ## alternative return HTTP header for failed authentication. Default HTTP |
98 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | 181 ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
99 ## handling that. Set this variable to 403 to return HTTPForbidden | 182 ## handling that. Set this variable to 403 to return HTTPForbidden |
100 auth_ret_code = | 183 auth_ret_code = |
184 | |
185 ## locking return code. When repository is locked return this HTTP code. 2XX | |
186 ## codes don't break the transactions while 4XX codes do | |
187 lock_ret_code = 423 | |
188 | |
101 | 189 |
102 #################################### | 190 #################################### |
103 ### CELERY CONFIG #### | 191 ### CELERY CONFIG #### |
104 #################################### | 192 #################################### |
105 use_celery = false | 193 use_celery = false |
121 celeryd.concurrency = 2 | 209 celeryd.concurrency = 2 |
122 #celeryd.log.file = celeryd.log | 210 #celeryd.log.file = celeryd.log |
123 celeryd.log.level = debug | 211 celeryd.log.level = debug |
124 celeryd.max.tasks.per.child = 1 | 212 celeryd.max.tasks.per.child = 1 |
125 | 213 |
126 #tasks will never be sent to the queue, but executed locally instead. | 214 ## tasks will never be sent to the queue, but executed locally instead. |
127 celery.always.eager = false | 215 celery.always.eager = false |
128 | 216 |
129 #################################### | 217 #################################### |
130 ### BEAKER CACHE #### | 218 ### BEAKER CACHE #### |
131 #################################### | 219 #################################### |
164 ## Type of storage used for the session, current types are | 252 ## Type of storage used for the session, current types are |
165 ## dbm, file, memcached, database, and memory. | 253 ## dbm, file, memcached, database, and memory. |
166 ## The storage uses the Container API | 254 ## The storage uses the Container API |
167 ## that is also used by the cache system. | 255 ## that is also used by the cache system. |
168 | 256 |
169 ## db session example | 257 ## db session ## |
170 | |
171 #beaker.session.type = ext:database | 258 #beaker.session.type = ext:database |
172 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode | 259 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode |
173 #beaker.session.table_name = db_session | 260 #beaker.session.table_name = db_session |
174 | 261 |
175 ## encrypted cookie session, good for many instances | 262 ## encrypted cookie client side session, good for many instances ## |
176 #beaker.session.type = cookie | 263 #beaker.session.type = cookie |
177 | 264 |
178 beaker.session.type = file | 265 ## file based cookies (default) ## |
266 #beaker.session.type = file | |
267 | |
268 | |
179 beaker.session.key = rhodecode | 269 beaker.session.key = rhodecode |
180 # secure cookie requires AES python libraries | 270 ## secure cookie requires AES python libraries |
181 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu | 271 #beaker.session.encrypt_key = <key_for_encryption> |
182 #beaker.session.validate_key = 9712sds2212c--zxc123 | 272 #beaker.session.validate_key = <validation_key> |
183 beaker.session.timeout = 36000 | 273 |
274 ## sets session as invalid if it haven't been accessed for given amount of time | |
275 beaker.session.timeout = 3600 | |
184 beaker.session.httponly = true | 276 beaker.session.httponly = true |
277 #beaker.session.cookie_path = /<your-prefix> | |
185 | 278 |
186 ## uncomment for https secure cookie | 279 ## uncomment for https secure cookie |
187 beaker.session.secure = false | 280 beaker.session.secure = false |
188 | 281 |
189 ##auto save the session to not to use .save() | 282 ## auto save the session to not to use .save() |
190 beaker.session.auto = False | 283 beaker.session.auto = False |
191 | 284 |
192 ##true exire at browser close | 285 ## default cookie expiration time in seconds `true` expire at browser close ## |
193 #beaker.session.cookie_expires = 3600 | 286 #beaker.session.cookie_expires = 3600 |
287 | |
288 | |
289 ############################ | |
290 ## ERROR HANDLING SYSTEMS ## | |
291 ############################ | |
292 | |
293 #################### | |
294 ### [errormator] ### | |
295 #################### | |
296 | |
297 ## Errormator is tailored to work with RhodeCode, see | |
298 ## http://errormator.com for details how to obtain an account | |
299 ## you must install python package `errormator_client` to make it work | |
300 | |
301 ## errormator enabled | |
302 errormator = false | |
303 | |
304 errormator.server_url = https://api.errormator.com | |
305 errormator.api_key = YOUR_API_KEY | |
306 | |
307 ## TWEAK AMOUNT OF INFO SENT HERE | |
308 | |
309 ## enables 404 error logging (default False) | |
310 errormator.report_404 = false | |
311 | |
312 ## time in seconds after request is considered being slow (default 1) | |
313 errormator.slow_request_time = 1 | |
314 | |
315 ## record slow requests in application | |
316 ## (needs to be enabled for slow datastore recording and time tracking) | |
317 errormator.slow_requests = true | |
318 | |
319 ## enable hooking to application loggers | |
320 # errormator.logging = true | |
321 | |
322 ## minimum log level for log capture | |
323 # errormator.logging.level = WARNING | |
324 | |
325 ## send logs only from erroneous/slow requests | |
326 ## (saves API quota for intensive logging) | |
327 errormator.logging_on_error = false | |
328 | |
329 ## list of additonal keywords that should be grabbed from environ object | |
330 ## can be string with comma separated list of words in lowercase | |
331 ## (by default client will always send following info: | |
332 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that | |
333 ## start with HTTP* this list be extended with additional keywords here | |
334 errormator.environ_keys_whitelist = | |
335 | |
336 | |
337 ## list of keywords that should be blanked from request object | |
338 ## can be string with comma separated list of words in lowercase | |
339 ## (by default client will always blank keys that contain following words | |
340 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' | |
341 ## this list be extended with additional keywords set here | |
342 errormator.request_keys_blacklist = | |
343 | |
344 | |
345 ## list of namespaces that should be ignores when gathering log entries | |
346 ## can be string with comma separated list of namespaces | |
347 ## (by default the client ignores own entries: errormator_client.client) | |
348 errormator.log_namespace_blacklist = | |
349 | |
350 | |
351 ################ | |
352 ### [sentry] ### | |
353 ################ | |
354 | |
355 ## sentry is a alternative open source error aggregator | |
356 ## you must install python packages `sentry` and `raven` to enable | |
357 | |
358 sentry.dsn = YOUR_DNS | |
359 sentry.servers = | |
360 sentry.name = | |
361 sentry.key = | |
362 sentry.public_key = | |
363 sentry.secret_key = | |
364 sentry.project = | |
365 sentry.site = | |
366 sentry.include_paths = | |
367 sentry.exclude_paths = | |
194 | 368 |
195 | 369 |
196 ################################################################################ | 370 ################################################################################ |
197 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | 371 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
198 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | 372 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
199 ## execute malicious code after an exception is raised. ## | 373 ## execute malicious code after an exception is raised. ## |
200 ################################################################################ | 374 ################################################################################ |
201 #set debug = false | 375 set debug = false |
202 | 376 |
203 ################################## | 377 ################################## |
204 ### LOGVIEW CONFIG ### | 378 ### LOGVIEW CONFIG ### |
205 ################################## | 379 ################################## |
206 logview.sqlalchemy = #faa | 380 logview.sqlalchemy = #faa |
211 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | 385 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
212 ######################################################### | 386 ######################################################### |
213 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode_test.sqlite | 387 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode_test.sqlite |
214 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_test | 388 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_test |
215 #sqlalchemy.db1.url = mysql://root:qwe@localhost/rhodecode_test | 389 #sqlalchemy.db1.url = mysql://root:qwe@localhost/rhodecode_test |
216 | |
217 sqlalchemy.db1.echo = false | 390 sqlalchemy.db1.echo = false |
218 sqlalchemy.db1.pool_recycle = 3600 | 391 sqlalchemy.db1.pool_recycle = 3600 |
219 sqlalchemy.db1.convert_unicode = true | 392 sqlalchemy.db1.convert_unicode = true |
220 | 393 |
221 ################################ | 394 ################################ |
223 ################################ | 396 ################################ |
224 [loggers] | 397 [loggers] |
225 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer | 398 keys = root, routes, rhodecode, sqlalchemy, beaker, templates, whoosh_indexer |
226 | 399 |
227 [handlers] | 400 [handlers] |
228 keys = console | 401 keys = console, console_sql |
229 | 402 |
230 [formatters] | 403 [formatters] |
231 keys = generic, color_formatter | 404 keys = generic, color_formatter, color_formatter_sql |
232 | 405 |
233 ############# | 406 ############# |
234 ## LOGGERS ## | 407 ## LOGGERS ## |
235 ############# | 408 ############# |
236 [logger_root] | 409 [logger_root] |
239 | 412 |
240 [logger_routes] | 413 [logger_routes] |
241 level = DEBUG | 414 level = DEBUG |
242 handlers = | 415 handlers = |
243 qualname = routes.middleware | 416 qualname = routes.middleware |
244 # "level = DEBUG" logs the route matched and routing variables. | 417 ## "level = DEBUG" logs the route matched and routing variables. |
245 propagate = 1 | 418 propagate = 1 |
246 | 419 |
247 [logger_beaker] | 420 [logger_beaker] |
248 level = DEBUG | 421 level = DEBUG |
249 handlers = | 422 handlers = |
282 class = StreamHandler | 455 class = StreamHandler |
283 args = (sys.stderr,) | 456 args = (sys.stderr,) |
284 level = NOTSET | 457 level = NOTSET |
285 formatter = generic | 458 formatter = generic |
286 | 459 |
460 [handler_console_sql] | |
461 class = StreamHandler | |
462 args = (sys.stderr,) | |
463 level = WARN | |
464 formatter = generic | |
465 | |
287 ################ | 466 ################ |
288 ## FORMATTERS ## | 467 ## FORMATTERS ## |
289 ################ | 468 ################ |
290 | 469 |
291 [formatter_generic] | 470 [formatter_generic] |
294 | 473 |
295 [formatter_color_formatter] | 474 [formatter_color_formatter] |
296 class=rhodecode.lib.colored_formatter.ColorFormatter | 475 class=rhodecode.lib.colored_formatter.ColorFormatter |
297 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | 476 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
298 datefmt = %Y-%m-%d %H:%M:%S | 477 datefmt = %Y-%m-%d %H:%M:%S |
478 | |
479 [formatter_color_formatter_sql] | |
480 class=rhodecode.lib.colored_formatter.ColorFormatterSql | |
481 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
482 datefmt = %Y-%m-%d %H:%M:%S |