comparison development.ini @ 5477:6f60bd9090b1 stable

release: merge default to stable for 0.3
author Mads Kiilerich <madski@unity3d.com>
date Sun, 06 Sep 2015 23:36:05 +0200
parents 2079e864ce51
children 12b47803189f
comparison
equal deleted inserted replaced
5267:763dc7a96bae 5477:6f60bd9090b1
14 [DEFAULT] 14 [DEFAULT]
15 debug = true 15 debug = true
16 pdebug = false 16 pdebug = false
17 17
18 ################################################################################ 18 ################################################################################
19 ## Uncomment and replace with the address which should receive ## 19 ## Email settings ##
20 ## any error reports after application crash ## 20 ## ##
21 ## Additionally those settings will be used by Kallithea mailing system ## 21 ## Refer to the documentation ("Email settings") for more details. ##
22 ################################################################################ 22 ## ##
23 #email_to = admin@localhost 23 ## It is recommended to use a valid sender address that passes access ##
24 #error_email_from = paste_error@localhost 24 ## validation and spam filtering in mail servers. ##
25 #app_email_from = kallithea-noreply@localhost 25 ################################################################################
26 #error_message = 26
27 ## 'From' header for application emails. You can optionally add a name.
28 ## Default:
29 #app_email_from = Kallithea
30 ## Examples:
31 #app_email_from = Kallithea <kallithea-noreply@example.com>
32 #app_email_from = kallithea-noreply@example.com
33
34 ## Subject prefix for application emails.
35 ## A space between this prefix and the real subject is automatically added.
36 ## Default:
37 #email_prefix =
38 ## Example:
27 #email_prefix = [Kallithea] 39 #email_prefix = [Kallithea]
28 40
41 ## Recipients for error emails and fallback recipients of application mails.
42 ## Multiple addresses can be specified, space-separated.
43 ## Only addresses are allowed, do not add any name part.
44 ## Default:
45 #email_to =
46 ## Examples:
47 #email_to = admin@example.com
48 #email_to = admin@example.com another_admin@example.com
49
50 ## 'From' header for error emails. You can optionally add a name.
51 ## Default:
52 #error_email_from = pylons@yourapp.com
53 ## Examples:
54 #error_email_from = Kallithea Errors <kallithea-noreply@example.com>
55 #error_email_from = paste_error@example.com
56
57 ## SMTP server settings
58 ## Only smtp_server is mandatory. All other settings take the specified default
59 ## values.
29 #smtp_server = mail.server.com 60 #smtp_server = mail.server.com
30 #smtp_username = 61 #smtp_username =
31 #smtp_password = 62 #smtp_password =
32 #smtp_port = 63 #smtp_port = 25
33 #smtp_use_tls = false 64 #smtp_use_tls = false
34 #smtp_use_ssl = true 65 #smtp_use_ssl = false
35 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) 66 ## SMTP authentication parameters to use (e.g. LOGIN PLAIN CRAM-MD5, etc.).
67 ## If empty, use any of the authentication parameters supported by the server.
36 #smtp_auth = 68 #smtp_auth =
37 69
38 [server:main] 70 [server:main]
39 ## PASTE ## 71 ## PASTE ##
40 #use = egg:Paste#http 72 #use = egg:Paste#http
97 ## Gracefully Reload workers after the specified amount of managed requests 129 ## Gracefully Reload workers after the specified amount of managed requests
98 ## (avoid memory leaks). 130 ## (avoid memory leaks).
99 #max-requests = 1000 131 #max-requests = 1000
100 132
101 ## enable large buffers 133 ## enable large buffers
102 #buffer-size=65535 134 #buffer-size = 65535
103 135
104 ## socket and http timeouts ## 136 ## socket and http timeouts ##
105 #http-timeout=3600 137 #http-timeout = 3600
106 #socket-timeout=3600 138 #socket-timeout = 3600
107 139
108 ## Log requests slower than the specified number of milliseconds. 140 ## Log requests slower than the specified number of milliseconds.
109 #log-slow = 10 141 #log-slow = 10
110 142
111 ## Exit if no app can be loaded. 143 ## Exit if no app can be loaded.
132 164
133 ## COMMON ## 165 ## COMMON ##
134 host = 0.0.0.0 166 host = 0.0.0.0
135 port = 5000 167 port = 5000
136 168
137 ## prefix middleware for rc 169 ## middleware for hosting the WSGI application under a URL prefix
138 #[filter:proxy-prefix] 170 #[filter:proxy-prefix]
139 #use = egg:PasteDeploy#prefix 171 #use = egg:PasteDeploy#prefix
140 #prefix = /<your-prefix> 172 #prefix = /<your-prefix>
141 173
142 [app:main] 174 [app:main]
246 278
247 #issue_pat_wiki = (?:wiki-)(.+) 279 #issue_pat_wiki = (?:wiki-)(.+)
248 #issue_server_link_wiki = https://mywiki.com/{id} 280 #issue_server_link_wiki = https://mywiki.com/{id}
249 #issue_prefix_wiki = WIKI- 281 #issue_prefix_wiki = WIKI-
250 282
251
252 ## instance-id prefix 283 ## instance-id prefix
253 ## a prefix key for this instance used for cache invalidation when running 284 ## a prefix key for this instance used for cache invalidation when running
254 ## multiple instances of kallithea, make sure it's globally unique for 285 ## multiple instances of kallithea, make sure it's globally unique for
255 ## all running kallithea instances. Leave empty if you don't use it 286 ## all running kallithea instances. Leave empty if you don't use it
256 instance_id = 287 instance_id =
267 ## allows to change the repository location in settings page 298 ## allows to change the repository location in settings page
268 allow_repo_location_change = True 299 allow_repo_location_change = True
269 300
270 ## allows to setup custom hooks in settings page 301 ## allows to setup custom hooks in settings page
271 allow_custom_hooks_settings = True 302 allow_custom_hooks_settings = True
272
273 303
274 #################################### 304 ####################################
275 ### CELERY CONFIG #### 305 ### CELERY CONFIG ####
276 #################################### 306 ####################################
277 307
301 331
302 #################################### 332 ####################################
303 ### BEAKER CACHE #### 333 ### BEAKER CACHE ####
304 #################################### 334 ####################################
305 335
306 beaker.cache.data_dir=%(here)s/data/cache/data 336 beaker.cache.data_dir = %(here)s/data/cache/data
307 beaker.cache.lock_dir=%(here)s/data/cache/lock 337 beaker.cache.lock_dir = %(here)s/data/cache/lock
308 338
309 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long 339 beaker.cache.regions = short_term,long_term,sql_cache_short
310 340
311 beaker.cache.super_short_term.type=memory 341 beaker.cache.short_term.type = memory
312 beaker.cache.super_short_term.expire=10 342 beaker.cache.short_term.expire = 60
313 beaker.cache.super_short_term.key_length = 256
314
315 beaker.cache.short_term.type=memory
316 beaker.cache.short_term.expire=60
317 beaker.cache.short_term.key_length = 256 343 beaker.cache.short_term.key_length = 256
318 344
319 beaker.cache.long_term.type=memory 345 beaker.cache.long_term.type = memory
320 beaker.cache.long_term.expire=36000 346 beaker.cache.long_term.expire = 36000
321 beaker.cache.long_term.key_length = 256 347 beaker.cache.long_term.key_length = 256
322 348
323 beaker.cache.sql_cache_short.type=memory 349 beaker.cache.sql_cache_short.type = memory
324 beaker.cache.sql_cache_short.expire=10 350 beaker.cache.sql_cache_short.expire = 10
325 beaker.cache.sql_cache_short.key_length = 256 351 beaker.cache.sql_cache_short.key_length = 256
326
327 beaker.cache.sql_cache_med.type=memory
328 beaker.cache.sql_cache_med.expire=360
329 beaker.cache.sql_cache_med.key_length = 256
330
331 beaker.cache.sql_cache_long.type=file
332 beaker.cache.sql_cache_long.expire=3600
333 beaker.cache.sql_cache_long.key_length = 256
334 352
335 #################################### 353 ####################################
336 ### BEAKER SESSION #### 354 ### BEAKER SESSION ####
337 #################################### 355 ####################################
356
357 ## Name of session cookie. Should be unique for a given host and path, even when running
358 ## on different ports. Otherwise, cookie sessions will be shared and messed up.
359 beaker.session.key = kallithea
360 ## Sessions should always only be accessible by the browser, not directly by JavaScript.
361 beaker.session.httponly = true
362 ## Session lifetime. 2592000 seconds is 30 days.
363 beaker.session.timeout = 2592000
364
365 ## Server secret used with HMAC to ensure integrity of cookies.
366 beaker.session.secret = development-not-secret
367 ## Further, encrypt the data with AES.
368 #beaker.session.encrypt_key = <key_for_encryption>
369 #beaker.session.validate_key = <validation_key>
370
338 ## Type of storage used for the session, current types are 371 ## Type of storage used for the session, current types are
339 ## dbm, file, memcached, database, and memory. 372 ## dbm, file, memcached, database, and memory.
340 ## The storage uses the Container API 373
341 ## that is also used by the cache system. 374 ## File system storage of session data. (default)
342 375 #beaker.session.type = file
343 ## db session ## 376
377 ## Cookie only, store all session data inside the cookie. Requires secure secrets.
378 #beaker.session.type = cookie
379
380 ## Database storage of session data.
344 #beaker.session.type = ext:database 381 #beaker.session.type = ext:database
345 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea 382 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea
346 #beaker.session.table_name = db_session 383 #beaker.session.table_name = db_session
347 384
348 ## encrypted cookie client side session, good for many instances ##
349 #beaker.session.type = cookie
350
351 ## file based cookies (default) ##
352 #beaker.session.type = file
353
354 ## beaker.session.key should be unique for a given host, even when running
355 ## on different ports. Otherwise, cookie sessions will be shared and messed up.
356 beaker.session.key = kallithea
357 beaker.session.secret = development-not-secret
358
359 ## Secure encrypted cookie. Requires AES and AES python libraries
360 ## you must disable beaker.session.secret to use this
361 #beaker.session.encrypt_key = <key_for_encryption>
362 #beaker.session.validate_key = <validation_key>
363
364 ## sets session as invalid if it haven't been accessed for given amount of time
365 beaker.session.timeout = 2592000
366 beaker.session.httponly = true
367 #beaker.session.cookie_path = /<your-prefix>
368
369 ## uncomment for https secure cookie
370 beaker.session.secure = false
371
372 ## auto save the session to not to use .save()
373 beaker.session.auto = False
374
375 ## default cookie expiration time in seconds `true` expire at browser close ##
376 #beaker.session.cookie_expires = 3600
377
378
379 ############################ 385 ############################
380 ## ERROR HANDLING SYSTEMS ## 386 ## ERROR HANDLING SYSTEMS ##
381 ############################ 387 ############################
382 388
383 #################### 389 ####################
405 ## record slow requests in application 411 ## record slow requests in application
406 ## (needs to be enabled for slow datastore recording and time tracking) 412 ## (needs to be enabled for slow datastore recording and time tracking)
407 errormator.slow_requests = true 413 errormator.slow_requests = true
408 414
409 ## enable hooking to application loggers 415 ## enable hooking to application loggers
410 # errormator.logging = true 416 #errormator.logging = true
411 417
412 ## minimum log level for log capture 418 ## minimum log level for log capture
413 # errormator.logging.level = WARNING 419 #errormator.logging.level = WARNING
414 420
415 ## send logs only from erroneous/slow requests 421 ## send logs only from erroneous/slow requests
416 ## (saves API quota for intensive logging) 422 ## (saves API quota for intensive logging)
417 errormator.logging_on_error = false 423 errormator.logging_on_error = false
418 424
421 ## (by default client will always send following info: 427 ## (by default client will always send following info:
422 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that 428 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
423 ## start with HTTP* this list be extended with additional keywords here 429 ## start with HTTP* this list be extended with additional keywords here
424 errormator.environ_keys_whitelist = 430 errormator.environ_keys_whitelist =
425 431
426
427 ## list of keywords that should be blanked from request object 432 ## list of keywords that should be blanked from request object
428 ## can be string with comma separated list of words in lowercase 433 ## can be string with comma separated list of words in lowercase
429 ## (by default client will always blank keys that contain following words 434 ## (by default client will always blank keys that contain following words
430 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf' 435 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
431 ## this list be extended with additional keywords set here 436 ## this list be extended with additional keywords set here
432 errormator.request_keys_blacklist = 437 errormator.request_keys_blacklist =
433 438
434
435 ## list of namespaces that should be ignores when gathering log entries 439 ## list of namespaces that should be ignores when gathering log entries
436 ## can be string with comma separated list of namespaces 440 ## can be string with comma separated list of namespaces
437 ## (by default the client ignores own entries: errormator_client.client) 441 ## (by default the client ignores own entries: errormator_client.client)
438 errormator.log_namespace_blacklist = 442 errormator.log_namespace_blacklist =
439
440 443
441 ################ 444 ################
442 ### [sentry] ### 445 ### [sentry] ###
443 ################ 446 ################
444 447
454 sentry.project = 457 sentry.project =
455 sentry.site = 458 sentry.site =
456 sentry.include_paths = 459 sentry.include_paths =
457 sentry.exclude_paths = 460 sentry.exclude_paths =
458 461
459
460 ################################################################################ 462 ################################################################################
461 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## 463 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
462 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## 464 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
463 ## execute malicious code after an exception is raised. ## 465 ## execute malicious code after an exception is raised. ##
464 ################################################################################ 466 ################################################################################
479 481
480 # SQLITE [default] 482 # SQLITE [default]
481 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60 483 sqlalchemy.db1.url = sqlite:///%(here)s/kallithea.db?timeout=60
482 484
483 # POSTGRESQL 485 # POSTGRESQL
484 # sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea 486 #sqlalchemy.db1.url = postgresql://user:pass@localhost/kallithea
485 487
486 # MySQL 488 # MySQL
487 # sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea 489 #sqlalchemy.db1.url = mysql://user:pass@localhost/kallithea
488 490
489 # see sqlalchemy docs for others 491 # see sqlalchemy docs for others
490 492
491 sqlalchemy.db1.echo = false 493 sqlalchemy.db1.echo = false
492 sqlalchemy.db1.pool_recycle = 3600 494 sqlalchemy.db1.pool_recycle = 3600
577 [formatter_generic] 579 [formatter_generic]
578 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s 580 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
579 datefmt = %Y-%m-%d %H:%M:%S 581 datefmt = %Y-%m-%d %H:%M:%S
580 582
581 [formatter_color_formatter] 583 [formatter_color_formatter]
582 class=kallithea.lib.colored_formatter.ColorFormatter 584 class = kallithea.lib.colored_formatter.ColorFormatter
583 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s 585 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
584 datefmt = %Y-%m-%d %H:%M:%S 586 datefmt = %Y-%m-%d %H:%M:%S
585 587
586 [formatter_color_formatter_sql] 588 [formatter_color_formatter_sql]
587 class=kallithea.lib.colored_formatter.ColorFormatterSql 589 class = kallithea.lib.colored_formatter.ColorFormatterSql
588 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s 590 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
589 datefmt = %Y-%m-%d %H:%M:%S 591 datefmt = %Y-%m-%d %H:%M:%S