Mercurial > kallithea
comparison production.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 - 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# |
10 ################################################################################ | |
6 ################################################################################ | 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 ## |
14 ## Additionally those settings will be used by Kallithea mailing system ## | 20 ## Additionally those settings will be used by Kallithea mailing system ## |
15 ################################################################################ | 21 ################################################################################ |
56 ## process name | 62 ## process name |
57 #proc_name = kallithea | 63 #proc_name = kallithea |
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 |
65 | 71 |
66 ## UWSGI ## | 72 ## UWSGI ## |
137 ## enable proxy prefix middleware | 143 ## enable proxy prefix middleware |
138 #filter-with = proxy-prefix | 144 #filter-with = proxy-prefix |
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 |
160 | 166 |
161 ## use cache version of scm repo everywhere | 167 ## use cache version of scm repo everywhere |
176 ## path to git executable | 182 ## path to git executable |
177 git_path = git | 183 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 |
185 rss_items_per_page = 10 | 191 rss_items_per_page = 10 |
186 rss_include_diff = false | 192 rss_include_diff = false |
198 ## white list of API enabled controllers. This allows to add list of | 204 ## 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 | 205 ## 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 | 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, |
207 # FilesController:raw, | 213 # FilesController:raw, |
208 # FilesController:archivefile | 214 # FilesController:archivefile |
260 issue_prefix = # | 266 issue_prefix = # |
261 | 267 |
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} |
269 #issue_prefix_wiki = WIKI- | 275 #issue_prefix_wiki = WIKI- |
270 | 276 |
292 | 298 |
293 | 299 |
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 |
300 broker.port = 5672 | 307 broker.port = 5672 |
301 broker.user = rabbitmq | 308 broker.user = rabbitmq |
319 celery.always.eager = false | 326 celery.always.eager = false |
320 | 327 |
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 |
327 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long | 335 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long |
328 | 336 |
368 | 376 |
369 ## file based cookies (default) ## | 377 ## file based cookies (default) ## |
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 |
377 #beaker.session.encrypt_key = <key_for_encryption> | 385 #beaker.session.encrypt_key = <key_for_encryption> |
378 #beaker.session.validate_key = <validation_key> | 386 #beaker.session.validate_key = <validation_key> |
481 set debug = false | 489 set debug = false |
482 | 490 |
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 |
489 | 498 |
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 |
499 | 517 |
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 |
506 [handlers] | 525 [handlers] |
507 keys = console, console_sql | 526 keys = console, console_sql |
510 keys = generic, color_formatter, color_formatter_sql | 529 keys = generic, color_formatter, color_formatter_sql |
511 | 530 |
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 |
518 | 538 |
519 [logger_routes] | 539 [logger_routes] |