Mercurial > kallithea
comparison development.ini @ 7967:b0bd3332b715 stable
merge default to stable for 0.5.0
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Wed, 27 Nov 2019 20:35:19 +0100 |
parents | 3ea66ef563f2 |
children | 7c7d6b5c07c7 |
comparison
equal
deleted
inserted
replaced
7904:396147bff37c | 7967:b0bd3332b715 |
---|---|
151 ## url that does rewrites to _admin/gists/<gistid>. | 151 ## url that does rewrites to _admin/gists/<gistid>. |
152 ## example: http://gist.example.com/{gistid}. Empty means use the internal | 152 ## example: http://gist.example.com/{gistid}. Empty means use the internal |
153 ## Kallithea url, ie. http[s]://kallithea.example.com/_admin/gists/<gistid> | 153 ## Kallithea url, ie. http[s]://kallithea.example.com/_admin/gists/<gistid> |
154 gist_alias_url = | 154 gist_alias_url = |
155 | 155 |
156 ## white list of API enabled controllers. This allows to add list of | |
157 ## controllers to which access will be enabled by api_key. eg: to enable | |
158 ## api access to raw_files put `FilesController:raw`, to enable access to patches | |
159 ## add `ChangesetController:changeset_patch`. This list should be "," separated | |
160 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names | |
161 ## Recommended settings below are commented out: | |
162 api_access_controllers_whitelist = | |
163 # ChangesetController:changeset_patch, | |
164 # ChangesetController:changeset_raw, | |
165 # FilesController:raw, | |
166 # FilesController:archivefile | |
167 | |
168 ## default encoding used to convert from and to unicode | 156 ## default encoding used to convert from and to unicode |
169 ## can be also a comma separated list of encoding in case of mixed encodings | 157 ## can be also a comma separated list of encoding in case of mixed encodings |
170 default_encoding = utf-8 | 158 default_encoding = utf-8 |
171 | 159 |
172 ## Set Mercurial encoding, similar to setting HGENCODING before launching Kallithea | 160 ## Set Mercurial encoding, similar to setting HGENCODING before launching Kallithea |
217 ## alternative return HTTP header for failed authentication. Default HTTP | 205 ## alternative return HTTP header for failed authentication. Default HTTP |
218 ## response is 401 HTTPUnauthorized. Currently Mercurial clients have trouble with | 206 ## response is 401 HTTPUnauthorized. Currently Mercurial clients have trouble with |
219 ## handling that. Set this variable to 403 to return HTTPForbidden | 207 ## handling that. Set this variable to 403 to return HTTPForbidden |
220 auth_ret_code = | 208 auth_ret_code = |
221 | 209 |
222 ## locking return code. When repository is locked return this HTTP code. 2XX | |
223 ## codes don't break the transactions while 4XX codes do | |
224 lock_ret_code = 423 | |
225 | |
226 ## allows to change the repository location in settings page | 210 ## allows to change the repository location in settings page |
227 allow_repo_location_change = True | 211 allow_repo_location_change = True |
228 | 212 |
229 ## allows to setup custom hooks in settings page | 213 ## allows to setup custom hooks in settings page |
230 allow_custom_hooks_settings = True | 214 allow_custom_hooks_settings = True |
240 # .editorconfig | 224 # .editorconfig |
241 # INSTALL | 225 # INSTALL |
242 # CHANGELOG | 226 # CHANGELOG |
243 | 227 |
244 #################################### | 228 #################################### |
229 ### SSH CONFIG #### | |
230 #################################### | |
231 | |
232 ## SSH is disabled by default, until an Administrator decides to enable it. | |
233 ssh_enabled = false | |
234 | |
235 ## File where users' SSH keys will be stored *if* ssh_enabled is true. | |
236 #ssh_authorized_keys = /home/kallithea/.ssh/authorized_keys | |
237 | |
238 ## Path to be used in ssh_authorized_keys file to invoke kallithea-cli with ssh-serve. | |
239 #kallithea_cli_path = /srv/kallithea/venv/bin/kallithea-cli | |
240 | |
241 ## Locale to be used in the ssh-serve command. | |
242 ## This is needed because an SSH client may try to use its own locale | |
243 ## settings, which may not be available on the server. | |
244 ## See `locale -a` for valid values on this system. | |
245 #ssh_locale = C.UTF-8 | |
246 | |
247 #################################### | |
245 ### CELERY CONFIG #### | 248 ### CELERY CONFIG #### |
246 #################################### | 249 #################################### |
247 | 250 |
248 use_celery = false | 251 use_celery = false |
249 | 252 |
290 ### BEAKER SESSION #### | 293 ### BEAKER SESSION #### |
291 #################################### | 294 #################################### |
292 | 295 |
293 ## Name of session cookie. Should be unique for a given host and path, even when running | 296 ## Name of session cookie. Should be unique for a given host and path, even when running |
294 ## on different ports. Otherwise, cookie sessions will be shared and messed up. | 297 ## on different ports. Otherwise, cookie sessions will be shared and messed up. |
295 beaker.session.key = kallithea | 298 session.key = kallithea |
296 ## Sessions should always only be accessible by the browser, not directly by JavaScript. | 299 ## Sessions should always only be accessible by the browser, not directly by JavaScript. |
297 beaker.session.httponly = true | 300 session.httponly = true |
298 ## Session lifetime. 2592000 seconds is 30 days. | 301 ## Session lifetime. 2592000 seconds is 30 days. |
299 beaker.session.timeout = 2592000 | 302 session.timeout = 2592000 |
300 | 303 |
301 ## Server secret used with HMAC to ensure integrity of cookies. | 304 ## Server secret used with HMAC to ensure integrity of cookies. |
302 #beaker.session.secret = VERY-SECRET | 305 #session.secret = VERY-SECRET |
303 beaker.session.secret = development-not-secret | 306 session.secret = development-not-secret |
304 ## Further, encrypt the data with AES. | 307 ## Further, encrypt the data with AES. |
305 #beaker.session.encrypt_key = <key_for_encryption> | 308 #session.encrypt_key = <key_for_encryption> |
306 #beaker.session.validate_key = <validation_key> | 309 #session.validate_key = <validation_key> |
307 | 310 |
308 ## Type of storage used for the session, current types are | 311 ## Type of storage used for the session, current types are |
309 ## dbm, file, memcached, database, and memory. | 312 ## dbm, file, memcached, database, and memory. |
310 | 313 |
311 ## File system storage of session data. (default) | 314 ## File system storage of session data. (default) |
312 #beaker.session.type = file | 315 #session.type = file |
313 | 316 |
314 ## Cookie only, store all session data inside the cookie. Requires secure secrets. | 317 ## Cookie only, store all session data inside the cookie. Requires secure secrets. |
315 #beaker.session.type = cookie | 318 #session.type = cookie |
316 | 319 |
317 ## Database storage of session data. | 320 ## Database storage of session data. |
318 #beaker.session.type = ext:database | 321 #session.type = ext:database |
319 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea | 322 #session.sa.url = postgresql://postgres:qwe@localhost/kallithea |
320 #beaker.session.table_name = db_session | 323 #session.table_name = db_session |
324 | |
325 ############################ | |
326 ## ERROR HANDLING SYSTEMS ## | |
327 ############################ | |
328 | |
329 # Propagate email settings to ErrorReporter of TurboGears2 | |
330 # You do not normally need to change these lines | |
331 get trace_errors.error_email = email_to | |
332 get trace_errors.smtp_server = smtp_server | |
333 get trace_errors.smtp_port = smtp_port | |
334 get trace_errors.from_address = error_email_from | |
321 | 335 |
322 ################################################################################ | 336 ################################################################################ |
323 ## WARNING: *DEBUG MODE MUST BE OFF IN A PRODUCTION ENVIRONMENT* ## | 337 ## WARNING: *DEBUG MODE MUST BE OFF IN A PRODUCTION ENVIRONMENT* ## |
324 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | 338 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
325 ## execute malicious code after an exception is raised. ## | 339 ## execute malicious code after an exception is raised. ## |
359 | 373 |
360 [loggers] | 374 [loggers] |
361 keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer, werkzeug, backlash | 375 keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer, werkzeug, backlash |
362 | 376 |
363 [handlers] | 377 [handlers] |
364 keys = console, console_sql | 378 keys = console, console_color, console_color_sql, null |
365 | 379 |
366 [formatters] | 380 [formatters] |
367 keys = generic, color_formatter, color_formatter_sql | 381 keys = generic, color_formatter, color_formatter_sql |
368 | 382 |
369 ############# | 383 ############# |
370 ## LOGGERS ## | 384 ## LOGGERS ## |
371 ############# | 385 ############# |
372 | 386 |
373 [logger_root] | 387 [logger_root] |
374 level = NOTSET | 388 level = NOTSET |
375 handlers = console | 389 #handlers = console |
390 handlers = console_color | |
391 # For coloring based on log level: | |
392 # handlers = console_color | |
376 | 393 |
377 [logger_routes] | 394 [logger_routes] |
378 #level = WARN | 395 #level = WARN |
379 level = DEBUG | 396 level = DEBUG |
380 handlers = | 397 handlers = |
381 qualname = routes.middleware | 398 qualname = routes.middleware |
382 ## "level = DEBUG" logs the route matched and routing variables. | 399 ## "level = DEBUG" logs the route matched and routing variables. |
383 propagate = 1 | |
384 | 400 |
385 [logger_beaker] | 401 [logger_beaker] |
386 #level = WARN | 402 #level = WARN |
387 level = DEBUG | 403 level = DEBUG |
388 handlers = | 404 handlers = |
389 qualname = beaker.container | 405 qualname = beaker.container |
390 propagate = 1 | |
391 | 406 |
392 [logger_templates] | 407 [logger_templates] |
393 #level = WARN | 408 #level = WARN |
394 level = INFO | 409 level = INFO |
395 handlers = | 410 handlers = |
396 qualname = pylons.templating | 411 qualname = pylons.templating |
397 propagate = 1 | |
398 | 412 |
399 [logger_kallithea] | 413 [logger_kallithea] |
400 #level = WARN | 414 #level = WARN |
401 level = DEBUG | 415 level = DEBUG |
402 handlers = | 416 handlers = |
403 qualname = kallithea | 417 qualname = kallithea |
404 propagate = 1 | |
405 | 418 |
406 [logger_tg] | 419 [logger_tg] |
407 #level = WARN | 420 #level = WARN |
408 level = DEBUG | 421 level = DEBUG |
409 handlers = | 422 handlers = |
410 qualname = tg | 423 qualname = tg |
411 propagate = 1 | |
412 | 424 |
413 [logger_gearbox] | 425 [logger_gearbox] |
414 #level = WARN | 426 #level = WARN |
415 level = DEBUG | 427 level = DEBUG |
416 handlers = | 428 handlers = |
417 qualname = gearbox | 429 qualname = gearbox |
418 propagate = 1 | |
419 | 430 |
420 [logger_sqlalchemy] | 431 [logger_sqlalchemy] |
421 level = WARN | 432 level = WARN |
422 handlers = console_sql | 433 handlers = |
423 qualname = sqlalchemy.engine | 434 qualname = sqlalchemy.engine |
424 propagate = 0 | 435 # For coloring based on log level and pretty printing of SQL: |
436 # level = INFO | |
437 # handlers = console_color_sql | |
438 # propagate = 0 | |
425 | 439 |
426 [logger_whoosh_indexer] | 440 [logger_whoosh_indexer] |
427 #level = WARN | 441 #level = WARN |
428 level = DEBUG | 442 level = DEBUG |
429 handlers = | 443 handlers = |
430 qualname = whoosh_indexer | 444 qualname = whoosh_indexer |
431 propagate = 1 | |
432 | 445 |
433 [logger_werkzeug] | 446 [logger_werkzeug] |
434 level = WARN | 447 level = WARN |
435 handlers = | 448 handlers = |
436 qualname = werkzeug | 449 qualname = werkzeug |
437 propagate = 1 | |
438 | 450 |
439 [logger_backlash] | 451 [logger_backlash] |
440 level = WARN | 452 level = WARN |
441 handlers = | 453 handlers = |
442 qualname = backlash | 454 qualname = backlash |
443 propagate = 1 | |
444 | 455 |
445 ############## | 456 ############## |
446 ## HANDLERS ## | 457 ## HANDLERS ## |
447 ############## | 458 ############## |
448 | 459 |
449 [handler_console] | 460 [handler_console] |
450 class = StreamHandler | 461 class = StreamHandler |
451 args = (sys.stderr,) | 462 args = (sys.stderr,) |
452 #formatter = generic | 463 formatter = generic |
453 formatter = color_formatter | 464 |
454 | 465 [handler_console_color] |
455 [handler_console_sql] | 466 # ANSI color coding based on log level |
456 class = StreamHandler | 467 class = StreamHandler |
457 args = (sys.stderr,) | 468 args = (sys.stderr,) |
458 #formatter = generic | 469 formatter = color_formatter |
470 | |
471 [handler_console_color_sql] | |
472 # ANSI color coding and pretty printing of SQL statements | |
473 class = StreamHandler | |
474 args = (sys.stderr,) | |
459 formatter = color_formatter_sql | 475 formatter = color_formatter_sql |
476 | |
477 [handler_null] | |
478 class = NullHandler | |
479 args = () | |
460 | 480 |
461 ################ | 481 ################ |
462 ## FORMATTERS ## | 482 ## FORMATTERS ## |
463 ################ | 483 ################ |
464 | 484 |
473 | 493 |
474 [formatter_color_formatter_sql] | 494 [formatter_color_formatter_sql] |
475 class = kallithea.lib.colored_formatter.ColorFormatterSql | 495 class = kallithea.lib.colored_formatter.ColorFormatterSql |
476 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | 496 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
477 datefmt = %Y-%m-%d %H:%M:%S | 497 datefmt = %Y-%m-%d %H:%M:%S |
498 | |
499 ################# | |
500 ## SSH LOGGING ## | |
501 ################# | |
502 | |
503 # The default loggers use 'handler_console' that uses StreamHandler with | |
504 # destination 'sys.stderr'. In the context of the SSH server process, these log | |
505 # messages would be sent to the client, which is normally not what you want. | |
506 # By default, when running ssh-serve, just use NullHandler and disable logging | |
507 # completely. For other logging options, see: | |
508 # https://docs.python.org/2/library/logging.handlers.html | |
509 | |
510 [ssh_serve:logger_root] | |
511 level = CRITICAL | |
512 handlers = null | |
513 | |
514 # Note: If logging is configured with other handlers, they might need similar | |
515 # muting for ssh-serve too. |