Mercurial > kallithea
comparison test.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 - 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# |
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 ################################################################################ |
27 #smtp_use_ssl = true | 33 #smtp_use_ssl = true |
28 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | 34 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
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 |
49 | 54 ## windows systems. |
50 host = 0.0.0.0 | 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 | |
92 | |
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 |
54 #[filter:proxy-prefix] | 137 #[filter:proxy-prefix] |
55 #use = egg:PasteDeploy#prefix | 138 #use = egg:PasteDeploy#prefix |
60 ## enable proxy prefix middleware | 143 ## enable proxy prefix middleware |
61 #filter-with = proxy-prefix | 144 #filter-with = proxy-prefix |
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 |
88 force_https = false | 173 force_https = false |
89 | 174 |
91 use_htsts = false | 176 use_htsts = false |
92 | 177 |
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 |
102 ## path to git executable | 184 ## path to git executable |
103 git_path = git | 185 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 |
111 rss_items_per_page = 10 | 193 rss_items_per_page = 10 |
112 rss_include_diff = false | 194 rss_include_diff = false |
113 | 195 |
114 ## options for showing and identifying changesets | 196 ## options for showing and identifying changesets |
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 |
121 ## {email} user email | 220 ## {email} user email |
122 ## {md5email} md5 hash of the user email (like at gravatar.com) | 221 ## {md5email} md5 hash of the user email (like at gravatar.com) |
143 ## netloc - network location | 242 ## netloc - network location |
144 ## path - usually repo_name | 243 ## path - usually repo_name |
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 |
151 ## pattern to get the issues from commit messages | 253 ## pattern to get the issues from commit messages |
152 ## default one used here is #<numbers> with a regex passive group for `#` | 254 ## default one used here is #<numbers> with a regex passive group for `#` |
166 issue_prefix = # | 268 issue_prefix = # |
167 | 269 |
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} |
175 #issue_prefix_wiki = WIKI- | 277 #issue_prefix_wiki = WIKI- |
176 | 278 |
188 | 290 |
189 ## locking return code. When repository is locked return this HTTP code. 2XX | 291 ## locking return code. When repository is locked return this HTTP code. 2XX |
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 |
200 broker.port = 5672 | 309 broker.port = 5672 |
201 broker.user = rabbitmq | 310 broker.user = rabbitmq |
219 celery.always.eager = false | 328 celery.always.eager = false |
220 | 329 |
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 |
234 beaker.cache.short_term.expire=60 | 344 beaker.cache.short_term.expire=60 |
235 beaker.cache.short_term.key_length = 256 | 345 beaker.cache.short_term.key_length = 256 |
237 beaker.cache.long_term.type=memory | 347 beaker.cache.long_term.type=memory |
238 beaker.cache.long_term.expire=36000 | 348 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 |
246 beaker.cache.sql_cache_med.expire=360 | 356 beaker.cache.sql_cache_med.expire=360 |
247 beaker.cache.sql_cache_med.key_length = 256 | 357 beaker.cache.sql_cache_med.key_length = 256 |
267 #beaker.session.type = cookie | 377 #beaker.session.type = cookie |
268 | 378 |
269 ## file based cookies (default) ## | 379 ## file based cookies (default) ## |
270 #beaker.session.type = file | 380 #beaker.session.type = file |
271 | 381 |
272 | |
273 beaker.session.key = kallithea | 382 beaker.session.key = kallithea |
274 ## secure cookie requires AES python libraries | 383 beaker.session.secret = {74e0cd75-b339-478b-b129-07dd221def1f} |
384 | |
385 ## Secure encrypted cookie. Requires AES and 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 |
283 ## uncomment for https secure cookie | 395 ## uncomment for https secure cookie |
284 beaker.session.secure = false | 396 beaker.session.secure = false |
379 set debug = false | 491 set debug = false |
380 | 492 |
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 |
387 | 500 |
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 |
397 | 520 |
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 |
404 [handlers] | 528 [handlers] |
405 keys = console, console_sql | 529 keys = console, console_sql |
408 keys = generic, color_formatter, color_formatter_sql | 532 keys = generic, color_formatter, color_formatter_sql |
409 | 533 |
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 |
417 [logger_routes] | 543 [logger_routes] |
418 level = DEBUG | 544 level = DEBUG |
438 handlers = | 564 handlers = |
439 qualname = kallithea | 565 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 |
446 propagate = 0 | 574 propagate = 0 |
447 | 575 |
456 ############## | 584 ############## |
457 | 585 |
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 |
464 [handler_console_sql] | 593 [handler_console_sql] |
465 class = StreamHandler | 594 class = StreamHandler |