Mercurial > kallithea
comparison development.ini @ 4225:3e6291d99a6f kallithea-2.2.5-rebrand
Align and update the outdated ini files and templates
Change default database for development.ini to sqlite
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 02 Jul 2014 19:08:38 -0400 |
parents | 24c0d584ba86 |
children | a68fc4abeda3 |
comparison
equal
deleted
inserted
replaced
4224:1142ebbf04cd | 4225:3e6291d99a6f |
---|---|
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# |
11 ################################################################################ | |
6 ################################################################################ | 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 ## |
14 ## Additionally those settings will be used by Kallithea mailing system ## | 21 ## Additionally those settings will be used by Kallithea mailing system ## |
15 ################################################################################ | 22 ################################################################################ |
56 ## process name | 63 ## process name |
57 #proc_name = kallithea | 64 #proc_name = kallithea |
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 |
65 | 72 |
66 ## UWSGI ## | 73 ## UWSGI ## |
67 ## run with uwsgi --ini-paste-logged <inifile.ini> | 74 ## run with uwsgi --ini-paste-logged <inifile.ini> |
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 |
75 | 82 |
76 ## master process PID | 83 ## master process PID |
137 ## enable proxy prefix middleware | 144 ## enable proxy prefix middleware |
138 #filter-with = proxy-prefix | 145 #filter-with = proxy-prefix |
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 |
160 | 168 |
161 ## use cache version of scm repo everywhere | 169 ## use cache version of scm repo everywhere |
176 ## path to git executable | 184 ## path to git executable |
177 git_path = git | 185 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 |
185 rss_items_per_page = 10 | 193 rss_items_per_page = 10 |
186 rss_include_diff = false | 194 rss_include_diff = false |
198 ## white list of API enabled controllers. This allows to add list of | 206 ## white list of API enabled controllers. This allows to add list of |
199 ## controllers to which access will be enabled by api_key. eg: to enable | 207 ## controllers to which access will be enabled by api_key. eg: to enable |
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, |
207 # FilesController:raw, | 215 # FilesController:raw, |
208 # FilesController:archivefile | 216 # FilesController:archivefile |
260 issue_prefix = # | 268 issue_prefix = # |
261 | 269 |
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} |
269 #issue_prefix_wiki = WIKI- | 277 #issue_prefix_wiki = WIKI- |
270 | 278 |
292 | 300 |
293 | 301 |
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 |
300 broker.port = 5672 | 309 broker.port = 5672 |
301 broker.user = rabbitmq | 310 broker.user = rabbitmq |
319 celery.always.eager = false | 328 celery.always.eager = false |
320 | 329 |
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 |
327 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 |
328 | 338 |
368 | 378 |
369 ## file based cookies (default) ## | 379 ## file based cookies (default) ## |
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 |
377 #beaker.session.encrypt_key = <key_for_encryption> | 387 #beaker.session.encrypt_key = <key_for_encryption> |
378 #beaker.session.validate_key = <validation_key> | 388 #beaker.session.validate_key = <validation_key> |
477 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | 487 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
478 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | 488 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
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 |
489 | 501 |
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 |
499 | 520 |
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 |
506 [handlers] | 528 [handlers] |
507 keys = console, console_sql | 529 keys = console, console_sql |
510 keys = generic, color_formatter, color_formatter_sql | 532 keys = generic, color_formatter, color_formatter_sql |
511 | 533 |
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 |
518 | 541 |
519 [logger_routes] | 542 [logger_routes] |
558 ############## | 581 ############## |
559 | 582 |
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 |
572 ################ | 599 ################ |
573 ## FORMATTERS ## | 600 ## FORMATTERS ## |