##// END OF EJS Templates
Align and update the outdated ini files and templates...
Mads Kiilerich -
r4225:3e6291d9 kallithea-2.2.5-r...
parent child Browse files
Show More
@@ -1,13 +1,20 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # Kallithea - Pylons environment configuration #
3 # Kallithea - Development config: #
4 # listening on *:5000 #
5 # sqlite and kallithea.db #
6 # initial_repo_scan = true #
7 # set debug = true #
8 # verbose and colorful logging #
4 # #
9 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
10 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
11 ################################################################################
12 ################################################################################
7
13
8 [DEFAULT]
14 [DEFAULT]
9 debug = true
15 debug = true
10 pdebug = false
16 pdebug = false
17
11 ################################################################################
18 ################################################################################
12 ## Uncomment and replace with the address which should receive ##
19 ## Uncomment and replace with the address which should receive ##
13 ## any error reports after application crash ##
20 ## any error reports after application crash ##
@@ -58,7 +65,7 b' max_request_body_size = 107374182400'
58 ## type of worker class, one of sync, eventlet, gevent, tornado
65 ## type of worker class, one of sync, eventlet, gevent, tornado
59 ## recommended for bigger setup is using of of other than sync one
66 ## recommended for bigger setup is using of of other than sync one
60 #worker_class = sync
67 #worker_class = sync
61 #max_requests = 5
68 #max_requests = 1000
62 ## ammount of time a worker can handle request before it gets killed and
69 ## ammount of time a worker can handle request before it gets killed and
63 ## restarted
70 ## restarted
64 #timeout = 3600
71 #timeout = 3600
@@ -68,7 +75,7 b' max_request_body_size = 107374182400'
68 #[uwsgi]
75 #[uwsgi]
69 #socket = /tmp/uwsgi.sock
76 #socket = /tmp/uwsgi.sock
70 #master = true
77 #master = true
71 #http = 0.0.0.0:5000
78 #http = 127.0.0.1:5000
72
79
73 ## set as deamon and redirect all output to file
80 ## set as deamon and redirect all output to file
74 #daemonize = ./uwsgi_kallithea.log
81 #daemonize = ./uwsgi_kallithea.log
@@ -139,21 +146,22 b' use = egg:kallithea'
139
146
140 full_stack = true
147 full_stack = true
141 static_files = true
148 static_files = true
142 ## Optional Languages
149 ## Available Languages:
143 ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl
150 ## de en fr ja pl pt_BR ru zh_CN zh_TW
144 lang = en
151 lang = en
145 cache_dir = %(here)s/data
152 cache_dir = %(here)s/data
146 index_dir = %(here)s/data/index
153 index_dir = %(here)s/data/index
147
154
148 ## perform a full repository scan on each server start, this should be
155 ## perform a full repository scan on each server start, this should be
149 ## set to false after first startup, to allow faster server restarts.
156 ## set to false after first startup, to allow faster server restarts.
157 #initial_repo_scan = false
150 initial_repo_scan = true
158 initial_repo_scan = true
151
159
152 ## uncomment and set this path to use archive download cache
160 ## uncomment and set this path to use archive download cache
153 #archive_cache_dir = /tmp/tarballcache
161 archive_cache_dir = %(here)s/tarballcache
154
162
155 ## change this to unique ID for security
163 ## change this to unique ID for security
156 app_instance_uuid = rc-production
164 app_instance_uuid = development-not-secret
157
165
158 ## cut off limit for large diffs (size in bytes)
166 ## cut off limit for large diffs (size in bytes)
159 cut_off_limit = 256000
167 cut_off_limit = 256000
@@ -178,7 +186,7 b' git_path = git'
178
186
179 ## git rev filter option, --all is the default filter, if you need to
187 ## git rev filter option, --all is the default filter, if you need to
180 ## hide all refs in changelog switch this to --branches --tags
188 ## hide all refs in changelog switch this to --branches --tags
181 git_rev_filter=--all
189 #git_rev_filter = --branches --tags
182
190
183 ## RSS feed options
191 ## RSS feed options
184 rss_cut_off_limit = 256000
192 rss_cut_off_limit = 256000
@@ -200,7 +208,7 b' gist_alias_url ='
200 ## api access to raw_files put `FilesController:raw`, to enable access to patches
208 ## api access to raw_files put `FilesController:raw`, to enable access to patches
201 ## add `ChangesetController:changeset_patch`. This list should be "," separated
209 ## add `ChangesetController:changeset_patch`. This list should be "," separated
202 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
210 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
203 ## Recommended settings bellow are commented out:
211 ## Recommended settings below are commented out:
204 api_access_controllers_whitelist =
212 api_access_controllers_whitelist =
205 # ChangesetController:changeset_patch,
213 # ChangesetController:changeset_patch,
206 # ChangesetController:changeset_raw,
214 # ChangesetController:changeset_raw,
@@ -262,7 +270,7 b' issue_prefix = #'
262 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
270 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
263 ## multiple patterns, to other issues server, wiki or others
271 ## multiple patterns, to other issues server, wiki or others
264 ## below an example how to create a wiki pattern
272 ## below an example how to create a wiki pattern
265 # #wiki-some-id -> https://mywiki.com/some-id
273 # wiki-some-id -> https://mywiki.com/some-id
266
274
267 #issue_pat_wiki = (?:wiki-)(.+)
275 #issue_pat_wiki = (?:wiki-)(.+)
268 #issue_server_link_wiki = https://mywiki.com/{id}
276 #issue_server_link_wiki = https://mywiki.com/{id}
@@ -294,6 +302,7 b' allow_custom_hooks_settings = True'
294 ####################################
302 ####################################
295 ### CELERY CONFIG ####
303 ### CELERY CONFIG ####
296 ####################################
304 ####################################
305
297 use_celery = false
306 use_celery = false
298 broker.host = localhost
307 broker.host = localhost
299 broker.vhost = rabbitmqhost
308 broker.vhost = rabbitmqhost
@@ -321,6 +330,7 b' celery.always.eager = false'
321 ####################################
330 ####################################
322 ### BEAKER CACHE ####
331 ### BEAKER CACHE ####
323 ####################################
332 ####################################
333
324 beaker.cache.data_dir=%(here)s/data/cache/data
334 beaker.cache.data_dir=%(here)s/data/cache/data
325 beaker.cache.lock_dir=%(here)s/data/cache/lock
335 beaker.cache.lock_dir=%(here)s/data/cache/lock
326
336
@@ -370,7 +380,7 b' beaker.cache.sql_cache_long.key_length ='
370 #beaker.session.type = file
380 #beaker.session.type = file
371
381
372 beaker.session.key = kallithea
382 beaker.session.key = kallithea
373 beaker.session.secret = develop-rc-uytcxaz
383 beaker.session.secret = development-not-secret
374
384
375 ## Secure encrypted cookie. Requires AES and AES python libraries
385 ## Secure encrypted cookie. Requires AES and AES python libraries
376 ## you must disable beaker.session.secret to use this
386 ## you must disable beaker.session.secret to use this
@@ -479,10 +489,12 b' sentry.exclude_paths ='
479 ## execute malicious code after an exception is raised. ##
489 ## execute malicious code after an exception is raised. ##
480 ################################################################################
490 ################################################################################
481 #set debug = false
491 #set debug = false
492 set debug = true
482
493
483 ##################################
494 ##################################
484 ### LOGVIEW CONFIG ###
495 ### LOGVIEW CONFIG ###
485 ##################################
496 ##################################
497
486 logview.sqlalchemy = #faa
498 logview.sqlalchemy = #faa
487 logview.pylons.templating = #bfb
499 logview.pylons.templating = #bfb
488 logview.pylons.util = #eee
500 logview.pylons.util = #eee
@@ -490,9 +502,18 b' logview.pylons.util = #eee'
490 #########################################################
502 #########################################################
491 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
503 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
492 #########################################################
504 #########################################################
493 #sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=30
505
494 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/kallithea
506 # SQLITE [default]
495 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/kallithea
507 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60
508
509 # POSTGRESQL
510 # sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea
511
512 # MySQL
513 # sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea
514
515 # see sqlalchemy docs for others
516
496 sqlalchemy.db1.echo = false
517 sqlalchemy.db1.echo = false
497 sqlalchemy.db1.pool_recycle = 3600
518 sqlalchemy.db1.pool_recycle = 3600
498 sqlalchemy.db1.convert_unicode = true
519 sqlalchemy.db1.convert_unicode = true
@@ -500,6 +521,7 b' sqlalchemy.db1.convert_unicode = true'
500 ################################
521 ################################
501 ### LOGGING CONFIGURATION ####
522 ### LOGGING CONFIGURATION ####
502 ################################
523 ################################
524
503 [loggers]
525 [loggers]
504 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
526 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
505
527
@@ -512,6 +534,7 b' keys = generic, color_formatter, color_f'
512 #############
534 #############
513 ## LOGGERS ##
535 ## LOGGERS ##
514 #############
536 #############
537
515 [logger_root]
538 [logger_root]
516 level = NOTSET
539 level = NOTSET
517 handlers = console
540 handlers = console
@@ -560,12 +583,16 b' propagate = 1'
560 [handler_console]
583 [handler_console]
561 class = StreamHandler
584 class = StreamHandler
562 args = (sys.stderr,)
585 args = (sys.stderr,)
586 #level = INFO
587 #formatter = generic
563 level = DEBUG
588 level = DEBUG
564 formatter = color_formatter
589 formatter = color_formatter
565
590
566 [handler_console_sql]
591 [handler_console_sql]
567 class = StreamHandler
592 class = StreamHandler
568 args = (sys.stderr,)
593 args = (sys.stderr,)
594 #level = WARN
595 #formatter = generic
569 level = DEBUG
596 level = DEBUG
570 formatter = color_formatter_sql
597 formatter = color_formatter_sql
571
598
@@ -1,11 +1,8 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%text>
2 <%text>################################################################################
3 ################################################################################
4 ################################################################################
3 ################################################################################
5 # Kallithea - Example config #
4 # Kallithea - config file generated with kallithea-config #
6 # Built-in functions and variables #
5 ################################################################################
7 # The ${here} variable will be replaced with the parent directory of this file #
8 # ${uuid()} function will generate a unique hash #
9 ################################################################################
6 ################################################################################
10 </%text>
7 </%text>
11 [DEFAULT]
8 [DEFAULT]
@@ -16,8 +13,7 b' pdebug = false'
16 ## Uncomment and replace with the address which should receive ##
13 ## Uncomment and replace with the address which should receive ##
17 ## any error reports after application crash ##
14 ## any error reports after application crash ##
18 ## Additionally those settings will be used by Kallithea mailing system ##
15 ## Additionally those settings will be used by Kallithea mailing system ##
19 ################################################################################
16 ################################################################################</%text>
20 </%text>
21 #email_to = admin@localhost
17 #email_to = admin@localhost
22 #error_email_from = paste_error@localhost
18 #error_email_from = paste_error@localhost
23 #app_email_from = kallithea-noreply@localhost
19 #app_email_from = kallithea-noreply@localhost
@@ -77,7 +73,7 b' timeout = 3600'
77 [uwsgi]
73 [uwsgi]
78 socket = /tmp/uwsgi.sock
74 socket = /tmp/uwsgi.sock
79 master = true
75 master = true
80 http = 0.0.0.0:5000
76 http = 127.0.0.1:5000
81
77
82 <%text>## set as deamon and redirect all output to file</%text>
78 <%text>## set as deamon and redirect all output to file</%text>
83 #daemonize = ./uwsgi_kallithea.log
79 #daemonize = ./uwsgi_kallithea.log
@@ -86,7 +82,7 b' http = 0.0.0.0:5000'
86 pidfile = ./uwsgi_kallithea.pid
82 pidfile = ./uwsgi_kallithea.pid
87
83
88 <%text>## stats server with workers statistics, use uwsgitop</%text>
84 <%text>## stats server with workers statistics, use uwsgitop</%text>
89 <%text>## for monitoring</%text>
85 <%text>## for monitoring, `uwsgitop 127.0.0.1:1717`</%text>
90 stats = 127.0.0.1:1717
86 stats = 127.0.0.1:1717
91 memory-report = true
87 memory-report = true
92
88
@@ -148,8 +144,8 b' use = egg:kallithea'
148
144
149 full_stack = true
145 full_stack = true
150 static_files = true
146 static_files = true
151 <%text>## Optional Languages</%text>
147 <%text>## Available Languages:</%text>
152 <%text>## en, fr, ja, pt_BR, zh_CN, zh_TW, pl, ru</%text>
148 <%text>## de en fr ja pl pt_BR ru zh_CN zh_TW</%text>
153 lang = ${lang}
149 lang = ${lang}
154 cache_dir = ${here}/data
150 cache_dir = ${here}/data
155 index_dir = ${here}/data/index
151 index_dir = ${here}/data/index
@@ -187,7 +183,7 b' git_path = git'
187
183
188 <%text>## git rev filter option, --all is the default filter, if you need to</%text>
184 <%text>## git rev filter option, --all is the default filter, if you need to</%text>
189 <%text>## hide all refs in changelog switch this to --branches --tags</%text>
185 <%text>## hide all refs in changelog switch this to --branches --tags</%text>
190 git_rev_filter=--branches --tags
186 #git_rev_filter = --branches --tags
191
187
192 <%text>## RSS feed options</%text>
188 <%text>## RSS feed options</%text>
193 rss_cut_off_limit = 256000
189 rss_cut_off_limit = 256000
@@ -209,7 +205,12 b' gist_alias_url ='
209 <%text>## api access to raw_files put `FilesController:raw`, to enable access to patches</%text>
205 <%text>## api access to raw_files put `FilesController:raw`, to enable access to patches</%text>
210 <%text>## add `ChangesetController:changeset_patch`. This list should be "," separated</%text>
206 <%text>## add `ChangesetController:changeset_patch`. This list should be "," separated</%text>
211 <%text>## Syntax is <ControllerClass>:<function>. Check debug logs for generated names</%text>
207 <%text>## Syntax is <ControllerClass>:<function>. Check debug logs for generated names</%text>
208 <%text>## Recommended settings below are commented out:</%text>
212 api_access_controllers_whitelist =
209 api_access_controllers_whitelist =
210 # ChangesetController:changeset_patch,
211 # ChangesetController:changeset_raw,
212 # FilesController:raw,
213 # FilesController:archivefile
213
214
214 <%text>## alternative_gravatar_url allows you to use your own avatar server application</%text>
215 <%text>## alternative_gravatar_url allows you to use your own avatar server application</%text>
215 <%text>## the following parts of the URL will be replaced</%text>
216 <%text>## the following parts of the URL will be replaced</%text>
@@ -266,7 +267,7 b' issue_prefix = #'
266 <%text>## issue_pat, issue_server_link, issue_prefix can have suffixes to specify</%text>
267 <%text>## issue_pat, issue_server_link, issue_prefix can have suffixes to specify</%text>
267 <%text>## multiple patterns, to other issues server, wiki or others</%text>
268 <%text>## multiple patterns, to other issues server, wiki or others</%text>
268 <%text>## below an example how to create a wiki pattern</%text>
269 <%text>## below an example how to create a wiki pattern</%text>
269 <%text>## wiki-some-id -> https://mywiki.com/some-id</%text>
270 # wiki-some-id -> https://mywiki.com/some-id
270
271
271 #issue_pat_wiki = (?:wiki-)(.+)
272 #issue_pat_wiki = (?:wiki-)(.+)
272 #issue_server_link_wiki = https://mywiki.com/{id}
273 #issue_server_link_wiki = https://mywiki.com/{id}
@@ -484,8 +485,7 b' sentry.exclude_paths ='
484 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
485 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
485 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
486 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
486 ## execute malicious code after an exception is raised. ##
487 ## execute malicious code after an exception is raised. ##
487 ################################################################################
488 ################################################################################</%text>
488 </%text>
489 set debug = false
489 set debug = false
490 <%text>
490 <%text>
491 ##################################
491 ##################################
@@ -1,13 +1,15 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # Kallithea - Pylons environment configuration #
3 # Kallithea - Example 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 [DEFAULT]
9 [DEFAULT]
9 debug = true
10 debug = true
10 pdebug = false
11 pdebug = false
12
11 ################################################################################
13 ################################################################################
12 ## Uncomment and replace with the address which should receive ##
14 ## Uncomment and replace with the address which should receive ##
13 ## any error reports after application crash ##
15 ## any error reports after application crash ##
@@ -58,7 +60,7 b' max_request_body_size = 107374182400'
58 ## type of worker class, one of sync, eventlet, gevent, tornado
60 ## type of worker class, one of sync, eventlet, gevent, tornado
59 ## recommended for bigger setup is using of of other than sync one
61 ## recommended for bigger setup is using of of other than sync one
60 #worker_class = sync
62 #worker_class = sync
61 #max_requests = 5
63 #max_requests = 1000
62 ## ammount of time a worker can handle request before it gets killed and
64 ## ammount of time a worker can handle request before it gets killed and
63 ## restarted
65 ## restarted
64 #timeout = 3600
66 #timeout = 3600
@@ -139,18 +141,18 b' use = egg:kallithea'
139
141
140 full_stack = true
142 full_stack = true
141 static_files = true
143 static_files = true
142 ## Optional Languages
144 ## Available Languages:
143 ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl
145 ## de en fr ja pl pt_BR ru zh_CN zh_TW
144 lang = en
146 lang = en
145 cache_dir = %(here)s/data
147 cache_dir = %(here)s/data
146 index_dir = %(here)s/data/index
148 index_dir = %(here)s/data/index
147
149
148 ## perform a full repository scan on each server start, this should be
150 ## perform a full repository scan on each server start, this should be
149 ## set to false after first startup, to allow faster server restarts.
151 ## set to false after first startup, to allow faster server restarts.
150 initial_repo_scan = true
152 initial_repo_scan = false
151
153
152 ## uncomment and set this path to use archive download cache
154 ## uncomment and set this path to use archive download cache
153 #archive_cache_dir = /tmp/tarballcache
155 archive_cache_dir = %(here)s/tarballcache
154
156
155 ## change this to unique ID for security
157 ## change this to unique ID for security
156 app_instance_uuid = ${app_instance_uuid}
158 app_instance_uuid = ${app_instance_uuid}
@@ -178,7 +180,7 b' git_path = git'
178
180
179 ## git rev filter option, --all is the default filter, if you need to
181 ## git rev filter option, --all is the default filter, if you need to
180 ## hide all refs in changelog switch this to --branches --tags
182 ## hide all refs in changelog switch this to --branches --tags
181 git_rev_filter=--all
183 #git_rev_filter = --branches --tags
182
184
183 ## RSS feed options
185 ## RSS feed options
184 rss_cut_off_limit = 256000
186 rss_cut_off_limit = 256000
@@ -200,7 +202,7 b' gist_alias_url ='
200 ## api access to raw_files put `FilesController:raw`, to enable access to patches
202 ## api access to raw_files put `FilesController:raw`, to enable access to patches
201 ## add `ChangesetController:changeset_patch`. This list should be "," separated
203 ## add `ChangesetController:changeset_patch`. This list should be "," separated
202 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
204 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
203 ## Recommended settings bellow are commented out:
205 ## Recommended settings below are commented out:
204 api_access_controllers_whitelist =
206 api_access_controllers_whitelist =
205 # ChangesetController:changeset_patch,
207 # ChangesetController:changeset_patch,
206 # ChangesetController:changeset_raw,
208 # ChangesetController:changeset_raw,
@@ -262,7 +264,7 b' issue_prefix = #'
262 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
264 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
263 ## multiple patterns, to other issues server, wiki or others
265 ## multiple patterns, to other issues server, wiki or others
264 ## below an example how to create a wiki pattern
266 ## below an example how to create a wiki pattern
265 # #wiki-some-id -> https://mywiki.com/some-id
267 # wiki-some-id -> https://mywiki.com/some-id
266
268
267 #issue_pat_wiki = (?:wiki-)(.+)
269 #issue_pat_wiki = (?:wiki-)(.+)
268 #issue_server_link_wiki = https://mywiki.com/{id}
270 #issue_server_link_wiki = https://mywiki.com/{id}
@@ -294,6 +296,7 b' allow_custom_hooks_settings = True'
294 ####################################
296 ####################################
295 ### CELERY CONFIG ####
297 ### CELERY CONFIG ####
296 ####################################
298 ####################################
299
297 use_celery = false
300 use_celery = false
298 broker.host = localhost
301 broker.host = localhost
299 broker.vhost = rabbitmqhost
302 broker.vhost = rabbitmqhost
@@ -321,6 +324,7 b' celery.always.eager = false'
321 ####################################
324 ####################################
322 ### BEAKER CACHE ####
325 ### BEAKER CACHE ####
323 ####################################
326 ####################################
327
324 beaker.cache.data_dir=%(here)s/data/cache/data
328 beaker.cache.data_dir=%(here)s/data/cache/data
325 beaker.cache.lock_dir=%(here)s/data/cache/lock
329 beaker.cache.lock_dir=%(here)s/data/cache/lock
326
330
@@ -483,6 +487,7 b' set debug = false'
483 ##################################
487 ##################################
484 ### LOGVIEW CONFIG ###
488 ### LOGVIEW CONFIG ###
485 ##################################
489 ##################################
490
486 logview.sqlalchemy = #faa
491 logview.sqlalchemy = #faa
487 logview.pylons.templating = #bfb
492 logview.pylons.templating = #bfb
488 logview.pylons.util = #eee
493 logview.pylons.util = #eee
@@ -492,7 +497,7 b' logview.pylons.util = #eee'
492 #########################################################
497 #########################################################
493
498
494 # SQLITE [default]
499 # SQLITE [default]
495 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=30
500 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60
496
501
497 # POSTGRESQL
502 # POSTGRESQL
498 # sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea
503 # sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea
@@ -509,6 +514,7 b' sqlalchemy.db1.convert_unicode = true'
509 ################################
514 ################################
510 ### LOGGING CONFIGURATION ####
515 ### LOGGING CONFIGURATION ####
511 ################################
516 ################################
517
512 [loggers]
518 [loggers]
513 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
519 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
514
520
@@ -521,6 +527,7 b' keys = generic, color_formatter, color_f'
521 #############
527 #############
522 ## LOGGERS ##
528 ## LOGGERS ##
523 #############
529 #############
530
524 [logger_root]
531 [logger_root]
525 level = NOTSET
532 level = NOTSET
526 handlers = console
533 handlers = console
@@ -1,13 +1,19 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # Kallithea - Pylons environment configuration #
3 # Kallithea - Example config #
4 # Exactly as generated with "paster make-config Kallithea production.ini" #
5 # using sqlite and kallithea.db .
6 # Note: you should generate your own config with your own UUIDs for security #
7 # and consider not using sqlite for production. #
4 # #
8 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
9 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
10 ################################################################################
11 ################################################################################
7
12
8 [DEFAULT]
13 [DEFAULT]
9 debug = true
14 debug = true
10 pdebug = false
15 pdebug = false
16
11 ################################################################################
17 ################################################################################
12 ## Uncomment and replace with the address which should receive ##
18 ## Uncomment and replace with the address which should receive ##
13 ## any error reports after application crash ##
19 ## any error reports after application crash ##
@@ -58,7 +64,7 b' max_request_body_size = 107374182400'
58 ## type of worker class, one of sync, eventlet, gevent, tornado
64 ## type of worker class, one of sync, eventlet, gevent, tornado
59 ## recommended for bigger setup is using of of other than sync one
65 ## recommended for bigger setup is using of of other than sync one
60 #worker_class = sync
66 #worker_class = sync
61 #max_requests = 5
67 #max_requests = 1000
62 ## ammount of time a worker can handle request before it gets killed and
68 ## ammount of time a worker can handle request before it gets killed and
63 ## restarted
69 ## restarted
64 #timeout = 3600
70 #timeout = 3600
@@ -139,21 +145,21 b' use = egg:kallithea'
139
145
140 full_stack = true
146 full_stack = true
141 static_files = true
147 static_files = true
142 ## Optional Languages
148 ## Available Languages:
143 ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl
149 ## de en fr ja pl pt_BR ru zh_CN zh_TW
144 lang = en
150 lang = en
145 cache_dir = %(here)s/data
151 cache_dir = %(here)s/data
146 index_dir = %(here)s/data/index
152 index_dir = %(here)s/data/index
147
153
148 ## perform a full repository scan on each server start, this should be
154 ## perform a full repository scan on each server start, this should be
149 ## set to false after first startup, to allow faster server restarts.
155 ## set to false after first startup, to allow faster server restarts.
150 initial_repo_scan = true
156 initial_repo_scan = false
151
157
152 ## uncomment and set this path to use archive download cache
158 ## uncomment and set this path to use archive download cache
153 #archive_cache_dir = /tmp/tarballcache
159 archive_cache_dir = %(here)s/tarballcache
154
160
155 ## change this to unique ID for security
161 ## change this to unique ID for security
156 app_instance_uuid = rc-production
162 app_instance_uuid = change-me
157
163
158 ## cut off limit for large diffs (size in bytes)
164 ## cut off limit for large diffs (size in bytes)
159 cut_off_limit = 256000
165 cut_off_limit = 256000
@@ -178,7 +184,7 b' git_path = git'
178
184
179 ## git rev filter option, --all is the default filter, if you need to
185 ## git rev filter option, --all is the default filter, if you need to
180 ## hide all refs in changelog switch this to --branches --tags
186 ## hide all refs in changelog switch this to --branches --tags
181 git_rev_filter=--all
187 #git_rev_filter = --branches --tags
182
188
183 ## RSS feed options
189 ## RSS feed options
184 rss_cut_off_limit = 256000
190 rss_cut_off_limit = 256000
@@ -200,7 +206,7 b' gist_alias_url ='
200 ## api access to raw_files put `FilesController:raw`, to enable access to patches
206 ## api access to raw_files put `FilesController:raw`, to enable access to patches
201 ## add `ChangesetController:changeset_patch`. This list should be "," separated
207 ## add `ChangesetController:changeset_patch`. This list should be "," separated
202 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
208 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
203 ## Recommended settings bellow are commented out:
209 ## Recommended settings below are commented out:
204 api_access_controllers_whitelist =
210 api_access_controllers_whitelist =
205 # ChangesetController:changeset_patch,
211 # ChangesetController:changeset_patch,
206 # ChangesetController:changeset_raw,
212 # ChangesetController:changeset_raw,
@@ -262,7 +268,7 b' issue_prefix = #'
262 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
268 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
263 ## multiple patterns, to other issues server, wiki or others
269 ## multiple patterns, to other issues server, wiki or others
264 ## below an example how to create a wiki pattern
270 ## below an example how to create a wiki pattern
265 # #wiki-some-id -> https://mywiki.com/some-id
271 # wiki-some-id -> https://mywiki.com/some-id
266
272
267 #issue_pat_wiki = (?:wiki-)(.+)
273 #issue_pat_wiki = (?:wiki-)(.+)
268 #issue_server_link_wiki = https://mywiki.com/{id}
274 #issue_server_link_wiki = https://mywiki.com/{id}
@@ -294,6 +300,7 b' allow_custom_hooks_settings = True'
294 ####################################
300 ####################################
295 ### CELERY CONFIG ####
301 ### CELERY CONFIG ####
296 ####################################
302 ####################################
303
297 use_celery = false
304 use_celery = false
298 broker.host = localhost
305 broker.host = localhost
299 broker.vhost = rabbitmqhost
306 broker.vhost = rabbitmqhost
@@ -321,6 +328,7 b' celery.always.eager = false'
321 ####################################
328 ####################################
322 ### BEAKER CACHE ####
329 ### BEAKER CACHE ####
323 ####################################
330 ####################################
331
324 beaker.cache.data_dir=%(here)s/data/cache/data
332 beaker.cache.data_dir=%(here)s/data/cache/data
325 beaker.cache.lock_dir=%(here)s/data/cache/lock
333 beaker.cache.lock_dir=%(here)s/data/cache/lock
326
334
@@ -370,7 +378,7 b' beaker.cache.sql_cache_long.key_length ='
370 #beaker.session.type = file
378 #beaker.session.type = file
371
379
372 beaker.session.key = kallithea
380 beaker.session.key = kallithea
373 beaker.session.secret = production-rc-uytcxaz
381 beaker.session.secret = change-me
374
382
375 ## Secure encrypted cookie. Requires AES and AES python libraries
383 ## Secure encrypted cookie. Requires AES and AES python libraries
376 ## you must disable beaker.session.secret to use this
384 ## you must disable beaker.session.secret to use this
@@ -483,6 +491,7 b' set debug = false'
483 ##################################
491 ##################################
484 ### LOGVIEW CONFIG ###
492 ### LOGVIEW CONFIG ###
485 ##################################
493 ##################################
494
486 logview.sqlalchemy = #faa
495 logview.sqlalchemy = #faa
487 logview.pylons.templating = #bfb
496 logview.pylons.templating = #bfb
488 logview.pylons.util = #eee
497 logview.pylons.util = #eee
@@ -490,9 +499,18 b' logview.pylons.util = #eee'
490 #########################################################
499 #########################################################
491 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
500 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
492 #########################################################
501 #########################################################
493 #sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=30
502
494 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/kallithea
503 # SQLITE [default]
495 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/kallithea
504 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60
505
506 # POSTGRESQL
507 # sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea
508
509 # MySQL
510 # sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea
511
512 # see sqlalchemy docs for others
513
496 sqlalchemy.db1.echo = false
514 sqlalchemy.db1.echo = false
497 sqlalchemy.db1.pool_recycle = 3600
515 sqlalchemy.db1.pool_recycle = 3600
498 sqlalchemy.db1.convert_unicode = true
516 sqlalchemy.db1.convert_unicode = true
@@ -500,6 +518,7 b' sqlalchemy.db1.convert_unicode = true'
500 ################################
518 ################################
501 ### LOGGING CONFIGURATION ####
519 ### LOGGING CONFIGURATION ####
502 ################################
520 ################################
521
503 [loggers]
522 [loggers]
504 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
523 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
505
524
@@ -512,6 +531,7 b' keys = generic, color_formatter, color_f'
512 #############
531 #############
513 ## LOGGERS ##
532 ## LOGGERS ##
514 #############
533 #############
534
515 [logger_root]
535 [logger_root]
516 level = NOTSET
536 level = NOTSET
517 handlers = console
537 handlers = console
@@ -1,13 +1,19 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # Kallithea - Pylons environment configuration #
3 # Kallithea - config for tests: #
4 # initial_repo_scan = true #
5 # vcs_full_cache = false #
6 # sqlalchemy and kallithea_test.sqlite #
7 # custom logging #
4 # #
8 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
9 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
10 ################################################################################
11 ################################################################################
7
12
8 [DEFAULT]
13 [DEFAULT]
9 debug = true
14 debug = true
10 pdebug = false
15 pdebug = false
16
11 ################################################################################
17 ################################################################################
12 ## Uncomment and replace with the address which should receive ##
18 ## Uncomment and replace with the address which should receive ##
13 ## any error reports after application crash ##
19 ## any error reports after application crash ##
@@ -29,25 +35,102 b' pdebug = false'
29 #smtp_auth =
35 #smtp_auth =
30
36
31 [server:main]
37 [server:main]
32 ## PASTE
38 ## PASTE ##
33 ## nr of threads to spawn
39 #use = egg:Paste#http
40 ## nr of worker threads to spawn
34 #threadpool_workers = 5
41 #threadpool_workers = 5
35
36 ## max request before thread respawn
42 ## max request before thread respawn
37 #threadpool_max_requests = 10
43 #threadpool_max_requests = 10
38
39 ## option to use threads of process
44 ## option to use threads of process
40 #use_threadpool = true
45 #use_threadpool = true
41
46
42 #use = egg:Paste#http
47 ## WAITRESS ##
43
48 use = egg:waitress#main
44 ## WAITRESS
49 ## number of worker threads
45 threads = 5
50 threads = 5
46 ## 100GB
51 ## MAX BODY SIZE 100GB
47 max_request_body_size = 107374182400
52 max_request_body_size = 107374182400
48 use = egg:waitress#main
53 ## use poll instead of select, fixes fd limits, may not work on old
54 ## windows systems.
55 #asyncore_use_poll = True
56
57 ## GUNICORN ##
58 #use = egg:gunicorn#main
59 ## number of process workers. You must set `instance_id = *` when this option
60 ## is set to more than one worker
61 #workers = 1
62 ## process name
63 #proc_name = kallithea
64 ## type of worker class, one of sync, eventlet, gevent, tornado
65 ## recommended for bigger setup is using of of other than sync one
66 #worker_class = sync
67 #max_requests = 1000
68 ## ammount of time a worker can handle request before it gets killed and
69 ## restarted
70 #timeout = 3600
71
72 ## UWSGI ##
73 ## run with uwsgi --ini-paste-logged <inifile.ini>
74 #[uwsgi]
75 #socket = /tmp/uwsgi.sock
76 #master = true
77 #http = 127.0.0.1:5000
78
79 ## set as deamon and redirect all output to file
80 #daemonize = ./uwsgi_kallithea.log
81
82 ## master process PID
83 #pidfile = ./uwsgi_kallithea.pid
84
85 ## stats server with workers statistics, use uwsgitop
86 ## for monitoring, `uwsgitop 127.0.0.1:1717`
87 #stats = 127.0.0.1:1717
88 #memory-report = true
89
90 ## log 5XX errors
91 #log-5xx = true
49
92
50 host = 0.0.0.0
93 ## Set the socket listen queue size.
94 #listen = 256
95
96 ## Gracefully Reload workers after the specified amount of managed requests
97 ## (avoid memory leaks).
98 #max-requests = 1000
99
100 ## enable large buffers
101 #buffer-size=65535
102
103 ## socket and http timeouts ##
104 #http-timeout=3600
105 #socket-timeout=3600
106
107 ## Log requests slower than the specified number of milliseconds.
108 #log-slow = 10
109
110 ## Exit if no app can be loaded.
111 #need-app = true
112
113 ## Set lazy mode (load apps in workers instead of master).
114 #lazy = true
115
116 ## scaling ##
117 ## set cheaper algorithm to use, if not set default will be used
118 #cheaper-algo = spare
119
120 ## minimum number of workers to keep at all times
121 #cheaper = 1
122
123 ## number of workers to spawn at startup
124 #cheaper-initial = 1
125
126 ## maximum number of workers that can be spawned
127 #workers = 4
128
129 ## how many workers should be spawned at a time
130 #cheaper-step = 1
131
132 ## COMMON ##
133 host = 127.0.0.1
51 port = 5000
134 port = 5000
52
135
53 ## prefix middleware for rc
136 ## prefix middleware for rc
@@ -62,26 +145,28 b' use = egg:kallithea'
62
145
63 full_stack = true
146 full_stack = true
64 static_files = true
147 static_files = true
65 ## Optional Languages
148 ## Available Languages:
66 ## en, fr, ja, pt_BR, zh_CN, zh_TW, pl
149 ## de en fr ja pl pt_BR ru zh_CN zh_TW
67 lang = en
150 lang = en
68 cache_dir = /tmp/rc/data
151 cache_dir = %(here)s/data
69 index_dir = /tmp/rc/index
152 index_dir = %(here)s/data/index
70
153
71 ## perform a full repository scan on each server start, this should be
154 ## perform a full repository scan on each server start, this should be
72 ## set to false after first startup, to allow faster server restarts.
155 ## set to false after first startup, to allow faster server restarts.
156 #initial_repo_scan = false
73 initial_repo_scan = true
157 initial_repo_scan = true
74
158
75 ## uncomment and set this path to use archive download cache
159 ## uncomment and set this path to use archive download cache
76 #archive_cache_dir = /tmp/tarballcache
160 archive_cache_dir = %(here)s/tarballcache
77
161
78 ## change this to unique ID for security
162 ## change this to unique ID for security
79 app_instance_uuid = rc-production
163 app_instance_uuid = test
80
164
81 ## cut off limit for large diffs (size in bytes)
165 ## cut off limit for large diffs (size in bytes)
82 cut_off_limit = 256000
166 cut_off_limit = 256000
83
167
84 ## use cache version of scm repo everywhere
168 ## use cache version of scm repo everywhere
169 #vcs_full_cache = true
85 vcs_full_cache = false
170 vcs_full_cache = false
86
171
87 ## force https in Kallithea, fixes https redirects, assumes it's always https
172 ## force https in Kallithea, fixes https redirects, assumes it's always https
@@ -93,9 +178,6 b' use_htsts = false'
93 ## number of commits stats will parse on each iteration
178 ## number of commits stats will parse on each iteration
94 commit_parse_limit = 25
179 commit_parse_limit = 25
95
180
96 ## number of items displayed in lightweight dashboard before paginating is shown
97 dashboard_items = 100
98
99 ## use gravatar service to display avatars
181 ## use gravatar service to display avatars
100 use_gravatar = true
182 use_gravatar = true
101
183
@@ -104,7 +186,7 b' git_path = git'
104
186
105 ## git rev filter option, --all is the default filter, if you need to
187 ## git rev filter option, --all is the default filter, if you need to
106 ## hide all refs in changelog switch this to --branches --tags
188 ## hide all refs in changelog switch this to --branches --tags
107 git_rev_filter=--all
189 #git_rev_filter = --branches --tags
108
190
109 ## RSS feed options
191 ## RSS feed options
110 rss_cut_off_limit = 256000
192 rss_cut_off_limit = 256000
@@ -115,6 +197,23 b' rss_include_diff = false'
115 show_sha_length = 12
197 show_sha_length = 12
116 show_revision_number = true
198 show_revision_number = true
117
199
200 ## gist URL alias, used to create nicer urls for gist. This should be an
201 ## url that does rewrites to _admin/gists/<gistid>.
202 ## example: http://gist.kallithea.server/{gistid}. Empty means use the internal
203 ## Kallithea url, ie. http[s]://your.kallithea.server/_admin/gists/<gistid>
204 gist_alias_url =
205
206 ## white list of API enabled controllers. This allows to add list of
207 ## controllers to which access will be enabled by api_key. eg: to enable
208 ## api access to raw_files put `FilesController:raw`, to enable access to patches
209 ## add `ChangesetController:changeset_patch`. This list should be "," separated
210 ## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
211 ## Recommended settings below are commented out:
212 api_access_controllers_whitelist =
213 # ChangesetController:changeset_patch,
214 # ChangesetController:changeset_raw,
215 # FilesController:raw,
216 # FilesController:archivefile
118
217
119 ## alternative_gravatar_url allows you to use your own avatar server application
218 ## alternative_gravatar_url allows you to use your own avatar server application
120 ## the following parts of the URL will be replaced
219 ## the following parts of the URL will be replaced
@@ -145,6 +244,9 b' default_encoding = utf8'
145
244
146 #clone_uri = {scheme}://{user}{pass}{netloc}{path}
245 #clone_uri = {scheme}://{user}{pass}{netloc}{path}
147
246
247 ## issue tracker for Kallithea (leave blank to disable, absent for default)
248 #bugtracker = https://bitbucket.org/conservancy/kallithea/issues
249
148 ## issue tracking mapping for commits messages
250 ## issue tracking mapping for commits messages
149 ## comment out issue_pat, issue_server, issue_prefix to enable
251 ## comment out issue_pat, issue_server, issue_prefix to enable
150
252
@@ -168,7 +270,7 b' issue_prefix = #'
168 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
270 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
169 ## multiple patterns, to other issues server, wiki or others
271 ## multiple patterns, to other issues server, wiki or others
170 ## below an example how to create a wiki pattern
272 ## below an example how to create a wiki pattern
171 # #wiki-some-id -> https://mywiki.com/some-id
273 # wiki-some-id -> https://mywiki.com/some-id
172
274
173 #issue_pat_wiki = (?:wiki-)(.+)
275 #issue_pat_wiki = (?:wiki-)(.+)
174 #issue_server_link_wiki = https://mywiki.com/{id}
276 #issue_server_link_wiki = https://mywiki.com/{id}
@@ -190,10 +292,17 b' auth_ret_code ='
190 ## codes don't break the transactions while 4XX codes do
292 ## codes don't break the transactions while 4XX codes do
191 lock_ret_code = 423
293 lock_ret_code = 423
192
294
295 ## allows to change the repository location in settings page
296 allow_repo_location_change = True
297
298 ## allows to setup custom hooks in settings page
299 allow_custom_hooks_settings = True
300
193
301
194 ####################################
302 ####################################
195 ### CELERY CONFIG ####
303 ### CELERY CONFIG ####
196 ####################################
304 ####################################
305
197 use_celery = false
306 use_celery = false
198 broker.host = localhost
307 broker.host = localhost
199 broker.vhost = rabbitmqhost
308 broker.vhost = rabbitmqhost
@@ -221,13 +330,14 b' celery.always.eager = false'
221 ####################################
330 ####################################
222 ### BEAKER CACHE ####
331 ### BEAKER CACHE ####
223 ####################################
332 ####################################
224 beaker.cache.data_dir=/tmp/rc/data/cache/data
333
225 beaker.cache.lock_dir=/tmp/rc/data/cache/lock
334 beaker.cache.data_dir=%(here)s/data/cache/data
335 beaker.cache.lock_dir=%(here)s/data/cache/lock
226
336
227 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
337 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
228
338
229 beaker.cache.super_short_term.type=memory
339 beaker.cache.super_short_term.type=memory
230 beaker.cache.super_short_term.expire=1
340 beaker.cache.super_short_term.expire=10
231 beaker.cache.super_short_term.key_length = 256
341 beaker.cache.super_short_term.key_length = 256
232
342
233 beaker.cache.short_term.type=memory
343 beaker.cache.short_term.type=memory
@@ -239,7 +349,7 b' beaker.cache.long_term.expire=36000'
239 beaker.cache.long_term.key_length = 256
349 beaker.cache.long_term.key_length = 256
240
350
241 beaker.cache.sql_cache_short.type=memory
351 beaker.cache.sql_cache_short.type=memory
242 beaker.cache.sql_cache_short.expire=1
352 beaker.cache.sql_cache_short.expire=10
243 beaker.cache.sql_cache_short.key_length = 256
353 beaker.cache.sql_cache_short.key_length = 256
244
354
245 beaker.cache.sql_cache_med.type=memory
355 beaker.cache.sql_cache_med.type=memory
@@ -269,14 +379,16 b' beaker.cache.sql_cache_long.key_length ='
269 ## file based cookies (default) ##
379 ## file based cookies (default) ##
270 #beaker.session.type = file
380 #beaker.session.type = file
271
381
382 beaker.session.key = kallithea
383 beaker.session.secret = {74e0cd75-b339-478b-b129-07dd221def1f}
272
384
273 beaker.session.key = kallithea
385 ## Secure encrypted cookie. Requires AES and AES python libraries
274 ## secure cookie requires AES python libraries
386 ## you must disable beaker.session.secret to use this
275 #beaker.session.encrypt_key = <key_for_encryption>
387 #beaker.session.encrypt_key = <key_for_encryption>
276 #beaker.session.validate_key = <validation_key>
388 #beaker.session.validate_key = <validation_key>
277
389
278 ## sets session as invalid if it haven't been accessed for given amount of time
390 ## sets session as invalid if it haven't been accessed for given amount of time
279 beaker.session.timeout = 3600
391 beaker.session.timeout = 2592000
280 beaker.session.httponly = true
392 beaker.session.httponly = true
281 #beaker.session.cookie_path = /<your-prefix>
393 #beaker.session.cookie_path = /<your-prefix>
282
394
@@ -381,6 +493,7 b' set debug = false'
381 ##################################
493 ##################################
382 ### LOGVIEW CONFIG ###
494 ### LOGVIEW CONFIG ###
383 ##################################
495 ##################################
496
384 logview.sqlalchemy = #faa
497 logview.sqlalchemy = #faa
385 logview.pylons.templating = #bfb
498 logview.pylons.templating = #bfb
386 logview.pylons.util = #eee
499 logview.pylons.util = #eee
@@ -388,9 +501,19 b' logview.pylons.util = #eee'
388 #########################################################
501 #########################################################
389 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
502 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
390 #########################################################
503 #########################################################
504
505 # SQLITE [default]
506 #sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60
391 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea_test.sqlite
507 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea_test.sqlite
392 #sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/kallithea_test
508
393 #sqlalchemy.db1.url = mysql://root:qwe@localhost/kallithea_test
509 # POSTGRESQL
510 # sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea
511
512 # MySQL
513 # sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea
514
515 # see sqlalchemy docs for others
516
394 sqlalchemy.db1.echo = false
517 sqlalchemy.db1.echo = false
395 sqlalchemy.db1.pool_recycle = 3600
518 sqlalchemy.db1.pool_recycle = 3600
396 sqlalchemy.db1.convert_unicode = true
519 sqlalchemy.db1.convert_unicode = true
@@ -398,6 +521,7 b' sqlalchemy.db1.convert_unicode = true'
398 ################################
521 ################################
399 ### LOGGING CONFIGURATION ####
522 ### LOGGING CONFIGURATION ####
400 ################################
523 ################################
524
401 [loggers]
525 [loggers]
402 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
526 keys = root, routes, kallithea, sqlalchemy, beaker, templates, whoosh_indexer
403
527
@@ -410,7 +534,9 b' keys = generic, color_formatter, color_f'
410 #############
534 #############
411 ## LOGGERS ##
535 ## LOGGERS ##
412 #############
536 #############
537
413 [logger_root]
538 [logger_root]
539 #level = NOTSET
414 level = DEBUG
540 level = DEBUG
415 handlers = console
541 handlers = console
416
542
@@ -440,6 +566,8 b' qualname = kallithea'
440 propagate = 1
566 propagate = 1
441
567
442 [logger_sqlalchemy]
568 [logger_sqlalchemy]
569 #level = INFO
570 #handlers = console_sql
443 level = ERROR
571 level = ERROR
444 handlers = console
572 handlers = console
445 qualname = sqlalchemy.engine
573 qualname = sqlalchemy.engine
@@ -458,6 +586,7 b' propagate = 1'
458 [handler_console]
586 [handler_console]
459 class = StreamHandler
587 class = StreamHandler
460 args = (sys.stderr,)
588 args = (sys.stderr,)
589 #level = INFO
461 level = NOTSET
590 level = NOTSET
462 formatter = generic
591 formatter = generic
463
592
General Comments 0
You need to be logged in to leave comments. Login now