Show More
@@ -98,11 +98,11 b' max_request_body_size = 107374182400' | |||||
98 | #max-requests = 1000 |
|
98 | #max-requests = 1000 | |
99 |
|
99 | |||
100 | ## enable large buffers |
|
100 | ## enable large buffers | |
101 | #buffer-size=65535 |
|
101 | #buffer-size = 65535 | |
102 |
|
102 | |||
103 | ## socket and http timeouts ## |
|
103 | ## socket and http timeouts ## | |
104 | #http-timeout=3600 |
|
104 | #http-timeout = 3600 | |
105 | #socket-timeout=3600 |
|
105 | #socket-timeout = 3600 | |
106 |
|
106 | |||
107 | ## Log requests slower than the specified number of milliseconds. |
|
107 | ## Log requests slower than the specified number of milliseconds. | |
108 | #log-slow = 10 |
|
108 | #log-slow = 10 | |
@@ -300,33 +300,33 b' celery.always.eager = false' | |||||
300 | ### BEAKER CACHE #### |
|
300 | ### BEAKER CACHE #### | |
301 | #################################### |
|
301 | #################################### | |
302 |
|
302 | |||
303 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
303 | beaker.cache.data_dir = %(here)s/data/cache/data | |
304 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
304 | beaker.cache.lock_dir = %(here)s/data/cache/lock | |
305 |
|
305 | |||
306 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
306 | beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
307 |
|
307 | |||
308 | beaker.cache.super_short_term.type=memory |
|
308 | beaker.cache.super_short_term.type = memory | |
309 | beaker.cache.super_short_term.expire=10 |
|
309 | beaker.cache.super_short_term.expire = 10 | |
310 | beaker.cache.super_short_term.key_length = 256 |
|
310 | beaker.cache.super_short_term.key_length = 256 | |
311 |
|
311 | |||
312 | beaker.cache.short_term.type=memory |
|
312 | beaker.cache.short_term.type = memory | |
313 | beaker.cache.short_term.expire=60 |
|
313 | beaker.cache.short_term.expire = 60 | |
314 | beaker.cache.short_term.key_length = 256 |
|
314 | beaker.cache.short_term.key_length = 256 | |
315 |
|
315 | |||
316 | beaker.cache.long_term.type=memory |
|
316 | beaker.cache.long_term.type = memory | |
317 | beaker.cache.long_term.expire=36000 |
|
317 | beaker.cache.long_term.expire = 36000 | |
318 | beaker.cache.long_term.key_length = 256 |
|
318 | beaker.cache.long_term.key_length = 256 | |
319 |
|
319 | |||
320 | beaker.cache.sql_cache_short.type=memory |
|
320 | beaker.cache.sql_cache_short.type = memory | |
321 | beaker.cache.sql_cache_short.expire=10 |
|
321 | beaker.cache.sql_cache_short.expire = 10 | |
322 | beaker.cache.sql_cache_short.key_length = 256 |
|
322 | beaker.cache.sql_cache_short.key_length = 256 | |
323 |
|
323 | |||
324 | beaker.cache.sql_cache_med.type=memory |
|
324 | beaker.cache.sql_cache_med.type = memory | |
325 | beaker.cache.sql_cache_med.expire=360 |
|
325 | beaker.cache.sql_cache_med.expire = 360 | |
326 | beaker.cache.sql_cache_med.key_length = 256 |
|
326 | beaker.cache.sql_cache_med.key_length = 256 | |
327 |
|
327 | |||
328 | beaker.cache.sql_cache_long.type=file |
|
328 | beaker.cache.sql_cache_long.type = file | |
329 | beaker.cache.sql_cache_long.expire=3600 |
|
329 | beaker.cache.sql_cache_long.expire = 3600 | |
330 | beaker.cache.sql_cache_long.key_length = 256 |
|
330 | beaker.cache.sql_cache_long.key_length = 256 | |
331 |
|
331 | |||
332 | #################################### |
|
332 | #################################### | |
@@ -403,10 +403,10 b' errormator.slow_request_time = 1' | |||||
403 | errormator.slow_requests = true |
|
403 | errormator.slow_requests = true | |
404 |
|
404 | |||
405 | ## enable hooking to application loggers |
|
405 | ## enable hooking to application loggers | |
406 |
# |
|
406 | #errormator.logging = true | |
407 |
|
407 | |||
408 | ## minimum log level for log capture |
|
408 | ## minimum log level for log capture | |
409 |
# |
|
409 | #errormator.logging.level = WARNING | |
410 |
|
410 | |||
411 | ## send logs only from erroneous/slow requests |
|
411 | ## send logs only from erroneous/slow requests | |
412 | ## (saves API quota for intensive logging) |
|
412 | ## (saves API quota for intensive logging) | |
@@ -473,10 +473,10 b' logview.pylons.util = #eee' | |||||
473 | sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60 |
|
473 | sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60 | |
474 |
|
474 | |||
475 | # POSTGRESQL |
|
475 | # POSTGRESQL | |
476 |
# |
|
476 | #sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea | |
477 |
|
477 | |||
478 | # MySQL |
|
478 | # MySQL | |
479 |
# |
|
479 | #sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea | |
480 |
|
480 | |||
481 | # see sqlalchemy docs for others |
|
481 | # see sqlalchemy docs for others | |
482 |
|
482 | |||
@@ -571,11 +571,11 b' format = %(asctime)s.%(msecs)03d %(level' | |||||
571 | datefmt = %Y-%m-%d %H:%M:%S |
|
571 | datefmt = %Y-%m-%d %H:%M:%S | |
572 |
|
572 | |||
573 | [formatter_color_formatter] |
|
573 | [formatter_color_formatter] | |
574 | class=kallithea.lib.colored_formatter.ColorFormatter |
|
574 | class = kallithea.lib.colored_formatter.ColorFormatter | |
575 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
575 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
576 | datefmt = %Y-%m-%d %H:%M:%S |
|
576 | datefmt = %Y-%m-%d %H:%M:%S | |
577 |
|
577 | |||
578 | [formatter_color_formatter_sql] |
|
578 | [formatter_color_formatter_sql] | |
579 | class=kallithea.lib.colored_formatter.ColorFormatterSql |
|
579 | class = kallithea.lib.colored_formatter.ColorFormatterSql | |
580 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
580 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
581 | datefmt = %Y-%m-%d %H:%M:%S |
|
581 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -38,8 +38,8 b' threadpool_workers = 5' | |||||
38 | threadpool_max_requests = 10 |
|
38 | threadpool_max_requests = 10 | |
39 | <%text>## option to use threads of process</%text> |
|
39 | <%text>## option to use threads of process</%text> | |
40 | use_threadpool = true |
|
40 | use_threadpool = true | |
41 | %endif |
|
41 | ||
42 | %if http_server == 'waitress': |
|
42 | %elif http_server == 'waitress': | |
43 | <%text>## WAITRESS ##</%text> |
|
43 | <%text>## WAITRESS ##</%text> | |
44 | use = egg:waitress#main |
|
44 | use = egg:waitress#main | |
45 | <%text>## number of worker threads</%text> |
|
45 | <%text>## number of worker threads</%text> | |
@@ -49,8 +49,8 b' max_request_body_size = 107374182400' | |||||
49 | <%text>## use poll instead of select, fixes fd limits, may not work on old</%text> |
|
49 | <%text>## use poll instead of select, fixes fd limits, may not work on old</%text> | |
50 | <%text>## windows systems.</%text> |
|
50 | <%text>## windows systems.</%text> | |
51 | #asyncore_use_poll = True |
|
51 | #asyncore_use_poll = True | |
52 | %endif |
|
52 | ||
53 | %if http_server == 'gunicorn': |
|
53 | %elif http_server == 'gunicorn': | |
54 | <%text>## GUNICORN ##</%text> |
|
54 | <%text>## GUNICORN ##</%text> | |
55 | use = egg:gunicorn#main |
|
55 | use = egg:gunicorn#main | |
56 | <%text>## number of process workers. You must set `instance_id = *` when this option</%text> |
|
56 | <%text>## number of process workers. You must set `instance_id = *` when this option</%text> | |
@@ -65,8 +65,8 b' max_requests = 1000' | |||||
65 | <%text>## ammount of time a worker can handle request before it gets killed and</%text> |
|
65 | <%text>## ammount of time a worker can handle request before it gets killed and</%text> | |
66 | <%text>## restarted</%text> |
|
66 | <%text>## restarted</%text> | |
67 | timeout = 3600 |
|
67 | timeout = 3600 | |
68 | %endif |
|
68 | ||
69 | %if http_server == 'uwsgi': |
|
69 | %elif http_server == 'uwsgi': | |
70 | <%text>## UWSGI ##</%text> |
|
70 | <%text>## UWSGI ##</%text> | |
71 | <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> |
|
71 | <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> | |
72 | [uwsgi] |
|
72 | [uwsgi] | |
@@ -96,11 +96,11 b' listen = 256' | |||||
96 | max-requests = 1000 |
|
96 | max-requests = 1000 | |
97 |
|
97 | |||
98 | <%text>## enable large buffers</%text> |
|
98 | <%text>## enable large buffers</%text> | |
99 | buffer-size=65535 |
|
99 | buffer-size = 65535 | |
100 |
|
100 | |||
101 | <%text>## socket and http timeouts ##</%text> |
|
101 | <%text>## socket and http timeouts ##</%text> | |
102 | http-timeout=3600 |
|
102 | http-timeout = 3600 | |
103 | socket-timeout=3600 |
|
103 | socket-timeout = 3600 | |
104 |
|
104 | |||
105 | <%text>## Log requests slower than the specified number of milliseconds.</%text> |
|
105 | <%text>## Log requests slower than the specified number of milliseconds.</%text> | |
106 | log-slow = 10 |
|
106 | log-slow = 10 | |
@@ -126,6 +126,7 b' workers = 4' | |||||
126 |
|
126 | |||
127 | <%text>## how many workers should be spawned at a time</%text> |
|
127 | <%text>## how many workers should be spawned at a time</%text> | |
128 | cheaper-step = 1 |
|
128 | cheaper-step = 1 | |
|
129 | ||||
129 | %endif |
|
130 | %endif | |
130 | <%text>## COMMON ##</%text> |
|
131 | <%text>## COMMON ##</%text> | |
131 | host = ${host} |
|
132 | host = ${host} | |
@@ -297,33 +298,33 b' celery.always.eager = false' | |||||
297 | <%text>### BEAKER CACHE ####</%text> |
|
298 | <%text>### BEAKER CACHE ####</%text> | |
298 | <%text>####################################</%text> |
|
299 | <%text>####################################</%text> | |
299 |
|
300 | |||
300 | beaker.cache.data_dir=${here}/data/cache/data |
|
301 | beaker.cache.data_dir = ${here}/data/cache/data | |
301 | beaker.cache.lock_dir=${here}/data/cache/lock |
|
302 | beaker.cache.lock_dir = ${here}/data/cache/lock | |
302 |
|
303 | |||
303 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
304 | beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
304 |
|
305 | |||
305 | beaker.cache.super_short_term.type=memory |
|
306 | beaker.cache.super_short_term.type = memory | |
306 | beaker.cache.super_short_term.expire=10 |
|
307 | beaker.cache.super_short_term.expire = 10 | |
307 | beaker.cache.super_short_term.key_length = 256 |
|
308 | beaker.cache.super_short_term.key_length = 256 | |
308 |
|
309 | |||
309 | beaker.cache.short_term.type=memory |
|
310 | beaker.cache.short_term.type = memory | |
310 | beaker.cache.short_term.expire=60 |
|
311 | beaker.cache.short_term.expire = 60 | |
311 | beaker.cache.short_term.key_length = 256 |
|
312 | beaker.cache.short_term.key_length = 256 | |
312 |
|
313 | |||
313 | beaker.cache.long_term.type=memory |
|
314 | beaker.cache.long_term.type = memory | |
314 | beaker.cache.long_term.expire=36000 |
|
315 | beaker.cache.long_term.expire = 36000 | |
315 | beaker.cache.long_term.key_length = 256 |
|
316 | beaker.cache.long_term.key_length = 256 | |
316 |
|
317 | |||
317 | beaker.cache.sql_cache_short.type=memory |
|
318 | beaker.cache.sql_cache_short.type = memory | |
318 | beaker.cache.sql_cache_short.expire=10 |
|
319 | beaker.cache.sql_cache_short.expire = 10 | |
319 | beaker.cache.sql_cache_short.key_length = 256 |
|
320 | beaker.cache.sql_cache_short.key_length = 256 | |
320 |
|
321 | |||
321 | beaker.cache.sql_cache_med.type=memory |
|
322 | beaker.cache.sql_cache_med.type = memory | |
322 | beaker.cache.sql_cache_med.expire=360 |
|
323 | beaker.cache.sql_cache_med.expire = 360 | |
323 | beaker.cache.sql_cache_med.key_length = 256 |
|
324 | beaker.cache.sql_cache_med.key_length = 256 | |
324 |
|
325 | |||
325 | beaker.cache.sql_cache_long.type=file |
|
326 | beaker.cache.sql_cache_long.type = file | |
326 | beaker.cache.sql_cache_long.expire=3600 |
|
327 | beaker.cache.sql_cache_long.expire = 3600 | |
327 | beaker.cache.sql_cache_long.key_length = 256 |
|
328 | beaker.cache.sql_cache_long.key_length = 256 | |
328 |
|
329 | |||
329 | <%text>####################################</%text> |
|
330 | <%text>####################################</%text> | |
@@ -370,7 +371,6 b' beaker.session.auto = False' | |||||
370 | #beaker.session.cookie_expires = 3600 |
|
371 | #beaker.session.cookie_expires = 3600 | |
371 |
|
372 | |||
372 | %if error_aggregation_service == 'errormator': |
|
373 | %if error_aggregation_service == 'errormator': | |
373 |
|
||||
374 | <%text>############################</%text> |
|
374 | <%text>############################</%text> | |
375 | <%text>## ERROR HANDLING SYSTEMS ##</%text> |
|
375 | <%text>## ERROR HANDLING SYSTEMS ##</%text> | |
376 | <%text>############################</%text> |
|
376 | <%text>############################</%text> | |
@@ -402,10 +402,10 b' errormator.slow_request_time = 1' | |||||
402 | errormator.slow_requests = true |
|
402 | errormator.slow_requests = true | |
403 |
|
403 | |||
404 | <%text>## enable hooking to application loggers</%text> |
|
404 | <%text>## enable hooking to application loggers</%text> | |
405 |
# |
|
405 | #errormator.logging = true | |
406 |
|
406 | |||
407 | <%text>## minimum log level for log capture</%text> |
|
407 | <%text>## minimum log level for log capture</%text> | |
408 |
# |
|
408 | #errormator.logging.level = WARNING | |
409 |
|
409 | |||
410 | <%text>## send logs only from erroneous/slow requests</%text> |
|
410 | <%text>## send logs only from erroneous/slow requests</%text> | |
411 | <%text>## (saves API quota for intensive logging)</%text> |
|
411 | <%text>## (saves API quota for intensive logging)</%text> | |
@@ -429,8 +429,8 b' errormator.request_keys_blacklist =' | |||||
429 | <%text>## can be string with comma separated list of namespaces</%text> |
|
429 | <%text>## can be string with comma separated list of namespaces</%text> | |
430 | <%text>## (by default the client ignores own entries: errormator_client.client)</%text> |
|
430 | <%text>## (by default the client ignores own entries: errormator_client.client)</%text> | |
431 | errormator.log_namespace_blacklist = |
|
431 | errormator.log_namespace_blacklist = | |
|
432 | ||||
432 | %elif error_aggregation_service == 'sentry': |
|
433 | %elif error_aggregation_service == 'sentry': | |
433 |
|
||||
434 | <%text>################</%text> |
|
434 | <%text>################</%text> | |
435 | <%text>### [sentry] ###</%text> |
|
435 | <%text>### [sentry] ###</%text> | |
436 | <%text>################</%text> |
|
436 | <%text>################</%text> | |
@@ -448,8 +448,8 b' sentry.project =' | |||||
448 | sentry.site = |
|
448 | sentry.site = | |
449 | sentry.include_paths = |
|
449 | sentry.include_paths = | |
450 | sentry.exclude_paths = |
|
450 | sentry.exclude_paths = | |
|
451 | ||||
451 | %endif |
|
452 | %endif | |
452 |
|
||||
453 | <%text>################################################################################</%text> |
|
453 | <%text>################################################################################</%text> | |
454 | <%text>## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##</%text> |
|
454 | <%text>## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##</%text> | |
455 | <%text>## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##</%text> |
|
455 | <%text>## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##</%text> | |
@@ -472,12 +472,15 b' logview.pylons.util = #eee' | |||||
472 | %if database_engine == 'sqlite': |
|
472 | %if database_engine == 'sqlite': | |
473 | # SQLITE [default] |
|
473 | # SQLITE [default] | |
474 | sqlalchemy.db1.url = sqlite:///${here}/kallithea.db?timeout=60 |
|
474 | sqlalchemy.db1.url = sqlite:///${here}/kallithea.db?timeout=60 | |
|
475 | ||||
475 | %elif database_engine == 'postgres': |
|
476 | %elif database_engine == 'postgres': | |
476 | # POSTGRESQL |
|
477 | # POSTGRESQL | |
477 | sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea |
|
478 | sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea | |
|
479 | ||||
478 | %elif database_engine == 'mysql': |
|
480 | %elif database_engine == 'mysql': | |
479 | # MySQL |
|
481 | # MySQL | |
480 | sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea |
|
482 | sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea | |
|
483 | ||||
481 | %endif |
|
484 | %endif | |
482 | # see sqlalchemy docs for others |
|
485 | # see sqlalchemy docs for others | |
483 |
|
486 | |||
@@ -568,11 +571,11 b' format = %(asctime)s.%(msecs)03d %(level' | |||||
568 | datefmt = %Y-%m-%d %H:%M:%S |
|
571 | datefmt = %Y-%m-%d %H:%M:%S | |
569 |
|
572 | |||
570 | [formatter_color_formatter] |
|
573 | [formatter_color_formatter] | |
571 | class=kallithea.lib.colored_formatter.ColorFormatter |
|
574 | class = kallithea.lib.colored_formatter.ColorFormatter | |
572 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
575 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
573 | datefmt = %Y-%m-%d %H:%M:%S |
|
576 | datefmt = %Y-%m-%d %H:%M:%S | |
574 |
|
577 | |||
575 | [formatter_color_formatter_sql] |
|
578 | [formatter_color_formatter_sql] | |
576 | class=kallithea.lib.colored_formatter.ColorFormatterSql |
|
579 | class = kallithea.lib.colored_formatter.ColorFormatterSql | |
577 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
580 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
578 | datefmt = %Y-%m-%d %H:%M:%S |
|
581 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -93,11 +93,11 b' max_request_body_size = 107374182400' | |||||
93 | #max-requests = 1000 |
|
93 | #max-requests = 1000 | |
94 |
|
94 | |||
95 | ## enable large buffers |
|
95 | ## enable large buffers | |
96 | #buffer-size=65535 |
|
96 | #buffer-size = 65535 | |
97 |
|
97 | |||
98 | ## socket and http timeouts ## |
|
98 | ## socket and http timeouts ## | |
99 | #http-timeout=3600 |
|
99 | #http-timeout = 3600 | |
100 | #socket-timeout=3600 |
|
100 | #socket-timeout = 3600 | |
101 |
|
101 | |||
102 | ## Log requests slower than the specified number of milliseconds. |
|
102 | ## Log requests slower than the specified number of milliseconds. | |
103 | #log-slow = 10 |
|
103 | #log-slow = 10 | |
@@ -294,33 +294,33 b' celery.always.eager = false' | |||||
294 | ### BEAKER CACHE #### |
|
294 | ### BEAKER CACHE #### | |
295 | #################################### |
|
295 | #################################### | |
296 |
|
296 | |||
297 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
297 | beaker.cache.data_dir = %(here)s/data/cache/data | |
298 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
298 | beaker.cache.lock_dir = %(here)s/data/cache/lock | |
299 |
|
299 | |||
300 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
300 | beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
301 |
|
301 | |||
302 | beaker.cache.super_short_term.type=memory |
|
302 | beaker.cache.super_short_term.type = memory | |
303 | beaker.cache.super_short_term.expire=10 |
|
303 | beaker.cache.super_short_term.expire = 10 | |
304 | beaker.cache.super_short_term.key_length = 256 |
|
304 | beaker.cache.super_short_term.key_length = 256 | |
305 |
|
305 | |||
306 | beaker.cache.short_term.type=memory |
|
306 | beaker.cache.short_term.type = memory | |
307 | beaker.cache.short_term.expire=60 |
|
307 | beaker.cache.short_term.expire = 60 | |
308 | beaker.cache.short_term.key_length = 256 |
|
308 | beaker.cache.short_term.key_length = 256 | |
309 |
|
309 | |||
310 | beaker.cache.long_term.type=memory |
|
310 | beaker.cache.long_term.type = memory | |
311 | beaker.cache.long_term.expire=36000 |
|
311 | beaker.cache.long_term.expire = 36000 | |
312 | beaker.cache.long_term.key_length = 256 |
|
312 | beaker.cache.long_term.key_length = 256 | |
313 |
|
313 | |||
314 | beaker.cache.sql_cache_short.type=memory |
|
314 | beaker.cache.sql_cache_short.type = memory | |
315 | beaker.cache.sql_cache_short.expire=10 |
|
315 | beaker.cache.sql_cache_short.expire = 10 | |
316 | beaker.cache.sql_cache_short.key_length = 256 |
|
316 | beaker.cache.sql_cache_short.key_length = 256 | |
317 |
|
317 | |||
318 | beaker.cache.sql_cache_med.type=memory |
|
318 | beaker.cache.sql_cache_med.type = memory | |
319 | beaker.cache.sql_cache_med.expire=360 |
|
319 | beaker.cache.sql_cache_med.expire = 360 | |
320 | beaker.cache.sql_cache_med.key_length = 256 |
|
320 | beaker.cache.sql_cache_med.key_length = 256 | |
321 |
|
321 | |||
322 | beaker.cache.sql_cache_long.type=file |
|
322 | beaker.cache.sql_cache_long.type = file | |
323 | beaker.cache.sql_cache_long.expire=3600 |
|
323 | beaker.cache.sql_cache_long.expire = 3600 | |
324 | beaker.cache.sql_cache_long.key_length = 256 |
|
324 | beaker.cache.sql_cache_long.key_length = 256 | |
325 |
|
325 | |||
326 | #################################### |
|
326 | #################################### | |
@@ -397,10 +397,10 b' errormator.slow_request_time = 1' | |||||
397 | errormator.slow_requests = true |
|
397 | errormator.slow_requests = true | |
398 |
|
398 | |||
399 | ## enable hooking to application loggers |
|
399 | ## enable hooking to application loggers | |
400 |
# |
|
400 | #errormator.logging = true | |
401 |
|
401 | |||
402 | ## minimum log level for log capture |
|
402 | ## minimum log level for log capture | |
403 |
# |
|
403 | #errormator.logging.level = WARNING | |
404 |
|
404 | |||
405 | ## send logs only from erroneous/slow requests |
|
405 | ## send logs only from erroneous/slow requests | |
406 | ## (saves API quota for intensive logging) |
|
406 | ## (saves API quota for intensive logging) | |
@@ -466,10 +466,10 b' logview.pylons.util = #eee' | |||||
466 | sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60 |
|
466 | sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60 | |
467 |
|
467 | |||
468 | # POSTGRESQL |
|
468 | # POSTGRESQL | |
469 |
# |
|
469 | #sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea | |
470 |
|
470 | |||
471 | # MySQL |
|
471 | # MySQL | |
472 |
# |
|
472 | #sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea | |
473 |
|
473 | |||
474 | # see sqlalchemy docs for others |
|
474 | # see sqlalchemy docs for others | |
475 |
|
475 | |||
@@ -560,11 +560,11 b' format = %(asctime)s.%(msecs)03d %(level' | |||||
560 | datefmt = %Y-%m-%d %H:%M:%S |
|
560 | datefmt = %Y-%m-%d %H:%M:%S | |
561 |
|
561 | |||
562 | [formatter_color_formatter] |
|
562 | [formatter_color_formatter] | |
563 | class=kallithea.lib.colored_formatter.ColorFormatter |
|
563 | class = kallithea.lib.colored_formatter.ColorFormatter | |
564 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
564 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
565 | datefmt = %Y-%m-%d %H:%M:%S |
|
565 | datefmt = %Y-%m-%d %H:%M:%S | |
566 |
|
566 | |||
567 | [formatter_color_formatter_sql] |
|
567 | [formatter_color_formatter_sql] | |
568 | class=kallithea.lib.colored_formatter.ColorFormatterSql |
|
568 | class = kallithea.lib.colored_formatter.ColorFormatterSql | |
569 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
569 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
570 | datefmt = %Y-%m-%d %H:%M:%S |
|
570 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -97,11 +97,11 b' max_request_body_size = 107374182400' | |||||
97 | #max-requests = 1000 |
|
97 | #max-requests = 1000 | |
98 |
|
98 | |||
99 | ## enable large buffers |
|
99 | ## enable large buffers | |
100 | #buffer-size=65535 |
|
100 | #buffer-size = 65535 | |
101 |
|
101 | |||
102 | ## socket and http timeouts ## |
|
102 | ## socket and http timeouts ## | |
103 | #http-timeout=3600 |
|
103 | #http-timeout = 3600 | |
104 | #socket-timeout=3600 |
|
104 | #socket-timeout = 3600 | |
105 |
|
105 | |||
106 | ## Log requests slower than the specified number of milliseconds. |
|
106 | ## Log requests slower than the specified number of milliseconds. | |
107 | #log-slow = 10 |
|
107 | #log-slow = 10 | |
@@ -300,33 +300,33 b' celery.always.eager = false' | |||||
300 | ### BEAKER CACHE #### |
|
300 | ### BEAKER CACHE #### | |
301 | #################################### |
|
301 | #################################### | |
302 |
|
302 | |||
303 | beaker.cache.data_dir=%(here)s/data/cache/data |
|
303 | beaker.cache.data_dir = %(here)s/data/cache/data | |
304 | beaker.cache.lock_dir=%(here)s/data/cache/lock |
|
304 | beaker.cache.lock_dir = %(here)s/data/cache/lock | |
305 |
|
305 | |||
306 | beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
|
306 | beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | |
307 |
|
307 | |||
308 | beaker.cache.super_short_term.type=memory |
|
308 | beaker.cache.super_short_term.type = memory | |
309 | beaker.cache.super_short_term.expire=10 |
|
309 | beaker.cache.super_short_term.expire = 10 | |
310 | beaker.cache.super_short_term.key_length = 256 |
|
310 | beaker.cache.super_short_term.key_length = 256 | |
311 |
|
311 | |||
312 | beaker.cache.short_term.type=memory |
|
312 | beaker.cache.short_term.type = memory | |
313 | beaker.cache.short_term.expire=60 |
|
313 | beaker.cache.short_term.expire = 60 | |
314 | beaker.cache.short_term.key_length = 256 |
|
314 | beaker.cache.short_term.key_length = 256 | |
315 |
|
315 | |||
316 | beaker.cache.long_term.type=memory |
|
316 | beaker.cache.long_term.type = memory | |
317 | beaker.cache.long_term.expire=36000 |
|
317 | beaker.cache.long_term.expire = 36000 | |
318 | beaker.cache.long_term.key_length = 256 |
|
318 | beaker.cache.long_term.key_length = 256 | |
319 |
|
319 | |||
320 | beaker.cache.sql_cache_short.type=memory |
|
320 | beaker.cache.sql_cache_short.type = memory | |
321 | beaker.cache.sql_cache_short.expire=1 |
|
321 | beaker.cache.sql_cache_short.expire = 1 | |
322 | beaker.cache.sql_cache_short.key_length = 256 |
|
322 | beaker.cache.sql_cache_short.key_length = 256 | |
323 |
|
323 | |||
324 | beaker.cache.sql_cache_med.type=memory |
|
324 | beaker.cache.sql_cache_med.type = memory | |
325 | beaker.cache.sql_cache_med.expire=360 |
|
325 | beaker.cache.sql_cache_med.expire = 360 | |
326 | beaker.cache.sql_cache_med.key_length = 256 |
|
326 | beaker.cache.sql_cache_med.key_length = 256 | |
327 |
|
327 | |||
328 | beaker.cache.sql_cache_long.type=file |
|
328 | beaker.cache.sql_cache_long.type = file | |
329 | beaker.cache.sql_cache_long.expire=3600 |
|
329 | beaker.cache.sql_cache_long.expire = 3600 | |
330 | beaker.cache.sql_cache_long.key_length = 256 |
|
330 | beaker.cache.sql_cache_long.key_length = 256 | |
331 |
|
331 | |||
332 | #################################### |
|
332 | #################################### | |
@@ -403,10 +403,10 b' errormator.slow_request_time = 1' | |||||
403 | errormator.slow_requests = true |
|
403 | errormator.slow_requests = true | |
404 |
|
404 | |||
405 | ## enable hooking to application loggers |
|
405 | ## enable hooking to application loggers | |
406 |
# |
|
406 | #errormator.logging = true | |
407 |
|
407 | |||
408 | ## minimum log level for log capture |
|
408 | ## minimum log level for log capture | |
409 |
# |
|
409 | #errormator.logging.level = WARNING | |
410 |
|
410 | |||
411 | ## send logs only from erroneous/slow requests |
|
411 | ## send logs only from erroneous/slow requests | |
412 | ## (saves API quota for intensive logging) |
|
412 | ## (saves API quota for intensive logging) | |
@@ -473,10 +473,10 b' logview.pylons.util = #eee' | |||||
473 | sqlalchemy.db1.url = sqlite:///%(here)s/kallithea_test.sqlite |
|
473 | sqlalchemy.db1.url = sqlite:///%(here)s/kallithea_test.sqlite | |
474 |
|
474 | |||
475 | # POSTGRESQL |
|
475 | # POSTGRESQL | |
476 |
# |
|
476 | #sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea | |
477 |
|
477 | |||
478 | # MySQL |
|
478 | # MySQL | |
479 |
# |
|
479 | #sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea | |
480 |
|
480 | |||
481 | # see sqlalchemy docs for others |
|
481 | # see sqlalchemy docs for others | |
482 |
|
482 | |||
@@ -571,11 +571,11 b' format = %(asctime)s.%(msecs)03d %(level' | |||||
571 | datefmt = %Y-%m-%d %H:%M:%S |
|
571 | datefmt = %Y-%m-%d %H:%M:%S | |
572 |
|
572 | |||
573 | [formatter_color_formatter] |
|
573 | [formatter_color_formatter] | |
574 | class=kallithea.lib.colored_formatter.ColorFormatter |
|
574 | class = kallithea.lib.colored_formatter.ColorFormatter | |
575 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
575 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
576 | datefmt = %Y-%m-%d %H:%M:%S |
|
576 | datefmt = %Y-%m-%d %H:%M:%S | |
577 |
|
577 | |||
578 | [formatter_color_formatter_sql] |
|
578 | [formatter_color_formatter_sql] | |
579 | class=kallithea.lib.colored_formatter.ColorFormatterSql |
|
579 | class = kallithea.lib.colored_formatter.ColorFormatterSql | |
580 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
580 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
581 | datefmt = %Y-%m-%d %H:%M:%S |
|
581 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now