Mercurial > kallithea
comparison development.ini @ 8364:68d4aae74194 i18n
Merge default pre 0.6
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 27 Apr 2020 13:25:28 +0200 |
parents | 4869a8bb1237 |
children | 6eb1f66ac23f |
comparison
equal
deleted
inserted
replaced
8219:826810fb830e | 8364:68d4aae74194 |
---|---|
1 ################################################################################ | 1 ################################################################################### |
2 ################################################################################ | 2 ################################################################################### |
3 # Kallithea - config file generated with kallithea-config # | 3 ## Kallithea config file generated with kallithea-config ## |
4 # # | 4 ## ## |
5 # The %(here)s variable will be replaced with the parent directory of this file# | 5 ## The %(here)s variable will be replaced with the parent directory of this file ## |
6 ################################################################################ | 6 ################################################################################### |
7 ################################################################################ | 7 ################################################################################### |
8 | 8 |
9 [DEFAULT] | 9 [DEFAULT] |
10 | 10 |
11 ################################################################################ | 11 ################################################################################ |
12 ## Email settings ## | 12 ## Email settings ## |
52 ## If specifying credentials, make sure to use secure connections. | 52 ## If specifying credentials, make sure to use secure connections. |
53 ## Default: Send unencrypted unauthenticated mails to the specified smtp_server. | 53 ## Default: Send unencrypted unauthenticated mails to the specified smtp_server. |
54 ## For "SSL", use smtp_use_ssl = true and smtp_port = 465. | 54 ## For "SSL", use smtp_use_ssl = true and smtp_port = 465. |
55 ## For "STARTTLS", use smtp_use_tls = true and smtp_port = 587. | 55 ## For "STARTTLS", use smtp_use_tls = true and smtp_port = 587. |
56 smtp_server = | 56 smtp_server = |
57 #smtp_username = | 57 smtp_username = |
58 #smtp_password = | 58 smtp_password = |
59 smtp_port = | 59 smtp_port = |
60 #smtp_use_ssl = false | 60 smtp_use_ssl = false |
61 #smtp_use_tls = false | 61 smtp_use_tls = false |
62 | 62 |
63 ## Entry point for 'gearbox serve' | 63 ## Entry point for 'gearbox serve' |
64 [server:main] | 64 [server:main] |
65 #host = 127.0.0.1 | 65 #host = 127.0.0.1 |
66 host = 0.0.0.0 | 66 host = 0.0.0.0 |
124 ## after '#!' (shebang). When empty or not defined, the value of | 124 ## after '#!' (shebang). When empty or not defined, the value of |
125 ## 'sys.executable' at the time of installation of the git hooks is | 125 ## 'sys.executable' at the time of installation of the git hooks is |
126 ## used, which is correct in many cases but for example not when using uwsgi. | 126 ## used, which is correct in many cases but for example not when using uwsgi. |
127 ## If you change this setting, you should reinstall the Git hooks via | 127 ## If you change this setting, you should reinstall the Git hooks via |
128 ## Admin > Settings > Remap and Rescan. | 128 ## Admin > Settings > Remap and Rescan. |
129 # git_hook_interpreter = /srv/kallithea/venv/bin/python3 | 129 #git_hook_interpreter = /srv/kallithea/venv/bin/python3 |
130 | 130 |
131 ## path to git executable | 131 ## path to git executable |
132 git_path = git | 132 git_path = git |
133 | 133 |
134 ## git rev filter option, --all is the default filter, if you need to | 134 ## git rev filter option, --all is the default filter, if you need to |
196 issue_sub = | 196 issue_sub = |
197 | 197 |
198 ## issue_pat, issue_server_link and issue_sub can have suffixes to specify | 198 ## issue_pat, issue_server_link and issue_sub can have suffixes to specify |
199 ## multiple patterns, to other issues server, wiki or others | 199 ## multiple patterns, to other issues server, wiki or others |
200 ## below an example how to create a wiki pattern | 200 ## below an example how to create a wiki pattern |
201 # wiki-some-id -> https://wiki.example.com/some-id | 201 ## wiki-some-id -> https://wiki.example.com/some-id |
202 | 202 |
203 #issue_pat_wiki = wiki-(\S+) | 203 #issue_pat_wiki = wiki-(\S+) |
204 #issue_server_link_wiki = https://wiki.example.com/\1 | 204 #issue_server_link_wiki = https://wiki.example.com/\1 |
205 #issue_sub_wiki = WIKI-\1 | 205 #issue_sub_wiki = WIKI-\1 |
206 | 206 |
214 | 214 |
215 ## allows to setup custom hooks in settings page | 215 ## allows to setup custom hooks in settings page |
216 allow_custom_hooks_settings = True | 216 allow_custom_hooks_settings = True |
217 | 217 |
218 ## extra extensions for indexing, space separated and without the leading '.'. | 218 ## extra extensions for indexing, space separated and without the leading '.'. |
219 # index.extensions = | 219 #index.extensions = |
220 # gemfile | 220 # gemfile |
221 # lock | 221 # lock |
222 | 222 |
223 ## extra filenames for indexing, space separated | 223 ## extra filenames for indexing, space separated |
224 # index.filenames = | 224 #index.filenames = |
225 # .dockerignore | 225 # .dockerignore |
226 # .editorconfig | 226 # .editorconfig |
227 # INSTALL | 227 # INSTALL |
228 # CHANGELOG | 228 # CHANGELOG |
229 | 229 |
248 | 248 |
249 #################################### | 249 #################################### |
250 ### CELERY CONFIG #### | 250 ### CELERY CONFIG #### |
251 #################################### | 251 #################################### |
252 | 252 |
253 ## Note: Celery doesn't support Windows. | |
253 use_celery = false | 254 use_celery = false |
254 | 255 |
255 ## Example: connect to the virtual host 'rabbitmqhost' on localhost as rabbitmq: | 256 ## Celery config settings from https://docs.celeryproject.org/en/4.4.0/userguide/configuration.html prefixed with 'celery.'. |
256 broker.url = amqp://rabbitmq:qewqew@localhost:5672/rabbitmqhost | 257 |
257 | 258 ## Example: use the message queue on the local virtual host 'kallitheavhost' as the RabbitMQ user 'kallithea': |
258 celery.imports = kallithea.lib.celerylib.tasks | 259 celery.broker_url = amqp://kallithea:thepassword@localhost:5672/kallitheavhost |
259 celery.accept.content = pickle | 260 |
260 celery.result.backend = amqp | 261 celery.result.backend = db+sqlite:///celery-results.db |
261 celery.result.dburi = amqp:// | 262 |
262 celery.result.serialier = json | |
263 | |
264 #celery.send.task.error.emails = true | |
265 #celery.amqp.task.result.expires = 18000 | 263 #celery.amqp.task.result.expires = 18000 |
266 | 264 |
267 celeryd.concurrency = 2 | 265 celery.worker_concurrency = 2 |
268 celeryd.max.tasks.per.child = 1 | 266 celery.worker_max_tasks_per_child = 1 |
269 | 267 |
270 ## If true, tasks will never be sent to the queue, but executed locally instead. | 268 ## If true, tasks will never be sent to the queue, but executed locally instead. |
271 celery.always.eager = false | 269 celery.task_always_eager = false |
272 | 270 |
273 #################################### | 271 #################################### |
274 ### BEAKER CACHE #### | 272 ### BEAKER CACHE #### |
275 #################################### | 273 #################################### |
276 | 274 |
277 beaker.cache.data_dir = %(here)s/data/cache/data | 275 beaker.cache.data_dir = %(here)s/data/cache/data |
278 beaker.cache.lock_dir = %(here)s/data/cache/lock | 276 beaker.cache.lock_dir = %(here)s/data/cache/lock |
279 | 277 |
280 beaker.cache.regions = short_term,long_term,sql_cache_short | 278 beaker.cache.regions = long_term,long_term_file |
281 | |
282 beaker.cache.short_term.type = memory | |
283 beaker.cache.short_term.expire = 60 | |
284 beaker.cache.short_term.key_length = 256 | |
285 | 279 |
286 beaker.cache.long_term.type = memory | 280 beaker.cache.long_term.type = memory |
287 beaker.cache.long_term.expire = 36000 | 281 beaker.cache.long_term.expire = 36000 |
288 beaker.cache.long_term.key_length = 256 | 282 beaker.cache.long_term.key_length = 256 |
289 | 283 |
290 beaker.cache.sql_cache_short.type = memory | 284 beaker.cache.long_term_file.type = file |
291 beaker.cache.sql_cache_short.expire = 10 | 285 beaker.cache.long_term_file.expire = 604800 |
292 beaker.cache.sql_cache_short.key_length = 256 | 286 beaker.cache.long_term_file.key_length = 256 |
293 | 287 |
294 #################################### | 288 #################################### |
295 ### BEAKER SESSION #### | 289 ### BEAKER SESSION #### |
296 #################################### | 290 #################################### |
297 | 291 |
322 ## Database storage of session data. | 316 ## Database storage of session data. |
323 #session.type = ext:database | 317 #session.type = ext:database |
324 #session.sa.url = postgresql://postgres:qwe@localhost/kallithea | 318 #session.sa.url = postgresql://postgres:qwe@localhost/kallithea |
325 #session.table_name = db_session | 319 #session.table_name = db_session |
326 | 320 |
327 ############################ | 321 #################################### |
328 ## ERROR HANDLING SYSTEMS ## | 322 ### ERROR HANDLING #### |
329 ############################ | 323 #################################### |
330 | 324 |
331 # Propagate email settings to ErrorReporter of TurboGears2 | 325 ## Show a nice error page for application HTTP errors and exceptions (default true) |
332 # You do not normally need to change these lines | 326 #errorpage.enabled = true |
333 get trace_errors.error_email = email_to | 327 |
328 ## Enable Backlash client-side interactive debugger (default false) | |
329 ## WARNING: *THIS MUST BE false IN PRODUCTION ENVIRONMENTS!!!* | |
330 ## This debug mode will allow all visitors to execute malicious code. | |
331 #debug = false | |
332 debug = true | |
333 | |
334 ## Enable Backlash server-side error reporting (unless debug mode handles it client-side) (default true) | |
335 #trace_errors.enable = true | |
336 ## Errors will be reported by mail if trace_errors.error_email is set. | |
337 | |
338 ## Propagate email settings to ErrorReporter of TurboGears2 | |
339 ## You do not normally need to change these lines | |
334 get trace_errors.smtp_server = smtp_server | 340 get trace_errors.smtp_server = smtp_server |
335 get trace_errors.smtp_port = smtp_port | 341 get trace_errors.smtp_port = smtp_port |
336 get trace_errors.from_address = error_email_from | 342 get trace_errors.from_address = error_email_from |
337 | 343 get trace_errors.error_email = email_to |
338 ################################################################################ | 344 get trace_errors.smtp_username = smtp_username |
339 ## WARNING: *DEBUG MODE MUST BE OFF IN A PRODUCTION ENVIRONMENT* ## | 345 get trace_errors.smtp_password = smtp_password |
340 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | 346 get trace_errors.smtp_use_tls = smtp_use_tls |
341 ## execute malicious code after an exception is raised. ## | 347 |
342 ################################################################################ | |
343 #debug = false | |
344 debug = true | |
345 | 348 |
346 ################################## | 349 ################################## |
347 ### LOGVIEW CONFIG ### | 350 ### LOGVIEW CONFIG ### |
348 ################################## | 351 ################################## |
349 | 352 |
353 | 356 |
354 ######################################################### | 357 ######################################################### |
355 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | 358 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
356 ######################################################### | 359 ######################################################### |
357 | 360 |
358 # SQLITE [default] | 361 ## SQLITE [default] |
359 sqlalchemy.url = sqlite:///%(here)s/kallithea.db?timeout=60 | 362 sqlalchemy.url = sqlite:///%(here)s/kallithea.db?timeout=60 |
360 | 363 |
361 # see sqlalchemy docs for others | 364 ## see sqlalchemy docs for other backends |
362 | 365 |
363 sqlalchemy.pool_recycle = 3600 | 366 sqlalchemy.pool_recycle = 3600 |
364 | 367 |
365 ################################ | 368 ################################ |
366 ### ALEMBIC CONFIGURATION #### | 369 ### ALEMBIC CONFIGURATION #### |
387 ############# | 390 ############# |
388 | 391 |
389 [logger_root] | 392 [logger_root] |
390 level = NOTSET | 393 level = NOTSET |
391 #handlers = console | 394 #handlers = console |
395 ## For coloring based on log level: | |
392 handlers = console_color | 396 handlers = console_color |
393 # For coloring based on log level: | |
394 # handlers = console_color | |
395 | 397 |
396 [logger_routes] | 398 [logger_routes] |
397 #level = WARN | 399 #level = WARN |
398 level = DEBUG | 400 level = DEBUG |
399 handlers = | 401 handlers = |
432 | 434 |
433 [logger_sqlalchemy] | 435 [logger_sqlalchemy] |
434 level = WARN | 436 level = WARN |
435 handlers = | 437 handlers = |
436 qualname = sqlalchemy.engine | 438 qualname = sqlalchemy.engine |
437 # For coloring based on log level and pretty printing of SQL: | 439 ## For coloring based on log level and pretty printing of SQL: |
438 # level = INFO | 440 #level = INFO |
439 # handlers = console_color_sql | 441 #handlers = console_color_sql |
440 # propagate = 0 | 442 #propagate = 0 |
441 | 443 |
442 [logger_whoosh_indexer] | 444 [logger_whoosh_indexer] |
443 #level = WARN | 445 #level = WARN |
444 level = DEBUG | 446 level = DEBUG |
445 handlers = | 447 handlers = |
463 class = StreamHandler | 465 class = StreamHandler |
464 args = (sys.stderr,) | 466 args = (sys.stderr,) |
465 formatter = generic | 467 formatter = generic |
466 | 468 |
467 [handler_console_color] | 469 [handler_console_color] |
468 # ANSI color coding based on log level | 470 ## ANSI color coding based on log level |
469 class = StreamHandler | 471 class = StreamHandler |
470 args = (sys.stderr,) | 472 args = (sys.stderr,) |
471 formatter = color_formatter | 473 formatter = color_formatter |
472 | 474 |
473 [handler_console_color_sql] | 475 [handler_console_color_sql] |
474 # ANSI color coding and pretty printing of SQL statements | 476 ## ANSI color coding and pretty printing of SQL statements |
475 class = StreamHandler | 477 class = StreamHandler |
476 args = (sys.stderr,) | 478 args = (sys.stderr,) |
477 formatter = color_formatter_sql | 479 formatter = color_formatter_sql |
478 | 480 |
479 [handler_null] | 481 [handler_null] |
500 | 502 |
501 ################# | 503 ################# |
502 ## SSH LOGGING ## | 504 ## SSH LOGGING ## |
503 ################# | 505 ################# |
504 | 506 |
505 # The default loggers use 'handler_console' that uses StreamHandler with | 507 ## The default loggers use 'handler_console' that uses StreamHandler with |
506 # destination 'sys.stderr'. In the context of the SSH server process, these log | 508 ## destination 'sys.stderr'. In the context of the SSH server process, these log |
507 # messages would be sent to the client, which is normally not what you want. | 509 ## messages would be sent to the client, which is normally not what you want. |
508 # By default, when running ssh-serve, just use NullHandler and disable logging | 510 ## By default, when running ssh-serve, just use NullHandler and disable logging |
509 # completely. For other logging options, see: | 511 ## completely. For other logging options, see: |
510 # https://docs.python.org/2/library/logging.handlers.html | 512 ## https://docs.python.org/2/library/logging.handlers.html |
511 | 513 |
512 [ssh_serve:logger_root] | 514 [ssh_serve:logger_root] |
513 level = CRITICAL | 515 level = CRITICAL |
514 handlers = null | 516 handlers = null |
515 | 517 |
516 # Note: If logging is configured with other handlers, they might need similar | 518 ## Note: If logging is configured with other handlers, they might need similar |
517 # muting for ssh-serve too. | 519 ## muting for ssh-serve too. |