##// END OF EJS Templates
backend: replace Pylons with TurboGears2...
backend: replace Pylons with TurboGears2 Replace the no-longer-supported Pylons application framework by TurboGears2 which is largely compatible/similar to Pylons. Some interesting history is described at: https://en.wikipedia.org/wiki/TurboGears Changes by Dominik Ruf: - fix sql config in test.ini Changes by Thomas De Schampheleire: - set-up of test suite - tests: 'fix' repo archival test failure Between Pylons and TurboGears2, there seems to be a small difference in the headers sent for repository archive files, related to character encoding. It is assumed that this difference is not important, and that the test should just align with reality. - remove need to import helpers/app_globals in lib TurboGears2 by default expects helpers and app_globals to be available in lib. For this reason kallithea/lib/__init__.py was originally changed to include those files. However, this triggered several types of circular import problems. If module A imported something from lib (e.g. lib.annotate), and lib.helpers imported (possibly indirectly) module A, then there was a circular import. Fix this by overruling the relevant method of tg AppConfig, which is also hinted in the TurboGears2 code. Hereby, the include of something from lib does not automatically import helpers, greatly reducing the chances of circular import problems. - make sure HTTP error '400' uses the custom error pages TurboGears2 does not by default handle HTTP status code '400 (Bad Request)' via the custom error page handling, causing a standard non-styled error page. - disable transaction manager Kallithea currently handles its own transactions and does not need the TurboGears2 transaction manager. However, TurboGears2 tries to enable it by default and fails, throwing an error during application initialization. The error itself seemed to be harmless for normal application functioning, but was nevertheless confusing. - add backlash as required dependency: backlash is meant as the WebError replacement in TurboGears2 (originally WebError is part of Pylons). When debug==true, it provides an interactive debugger in the browser. When debug==false, backlash is necessary to show backtraces on the console. - misc fixes

File last commit:

r6522:e1ab8261 default
r6522:e1ab8261 default
Show More
development.ini
616 lines | 18.2 KiB | text/x-ini | IniLexer
Marcin Kuzminski
Added pylons manage script...
r12 ################################################################################
################################################################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 # Kallithea - Development config: #
# listening on *:5000 #
# sqlite and kallithea.db #
# initial_repo_scan = true #
# set debug = true #
# verbose and colorful logging #
added ini files into codecleaner
r4068 # #
Marcin Kuzminski
Added pylons manage script...
r12 # The %(here)s variable will be replaced with the parent directory of this file#
################################################################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 ################################################################################
Marcin Kuzminski
major app speedup moved the wsgi creation to app globals, in order to make it run only once....
r10
Marcin Kuzminski
initial commit.
r0 [DEFAULT]
debug = true
added simple profiling middleware controlled by .ini file flag
r1355 pdebug = false
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
Implemented password reset(forms/models/ tasks) and mailing tasks....
r474 ################################################################################
Søren Løvborg
spelling: use "email" consistently...
r5412 ## Email settings ##
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## ##
Søren Løvborg
spelling: use "email" consistently...
r5412 ## Refer to the documentation ("Email settings") for more details. ##
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## ##
## It is recommended to use a valid sender address that passes access ##
## validation and spam filtering in mail servers. ##
Implemented password reset(forms/models/ tasks) and mailing tasks....
r474 ################################################################################
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366
Søren Løvborg
spelling: use "email" consistently...
r5412 ## 'From' header for application emails. You can optionally add a name.
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## Default:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #app_email_from = Kallithea
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## Examples:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #app_email_from = Kallithea <kallithea-noreply@example.com>
#app_email_from = kallithea-noreply@example.com
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366
Søren Løvborg
spelling: use "email" consistently...
r5412 ## Subject prefix for application emails.
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## A space between this prefix and the real subject is automatically added.
## Default:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #email_prefix =
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## Example:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #email_prefix = [Kallithea]
Søren Løvborg
spelling: use "email" consistently...
r5412 ## Recipients for error emails and fallback recipients of application mails.
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## Multiple addresses can be specified, space-separated.
## Only addresses are allowed, do not add any name part.
## Default:
#email_to =
## Examples:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #email_to = admin@example.com
#email_to = admin@example.com another_admin@example.com
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366
Søren Løvborg
spelling: use "email" consistently...
r5412 ## 'From' header for error emails. You can optionally add a name.
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## Default:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #error_email_from = pylons@yourapp.com
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## Examples:
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #error_email_from = Kallithea Errors <kallithea-noreply@example.com>
#error_email_from = paste_error@example.com
Implemented password reset(forms/models/ tasks) and mailing tasks....
r474
Thomas De Schampheleire
e-mail: add documentation about configuration settings...
r5366 ## SMTP server settings
Mads Kiilerich
docs: tweak email documentation - add gmail example...
r5844 ## If specifying credentials, make sure to use secure connections.
## Default: Send unencrypted unauthenticated mails to the specified smtp_server.
## For "SSL", use smtp_use_ssl = true and smtp_port = 465.
## For "STARTTLS", use smtp_use_tls = true and smtp_port = 587.
Søren Løvborg
cleanup: use example.com for tests and examples...
r5497 #smtp_server = smtp.example.com
added ini files into codecleaner
r4068 #smtp_username =
#smtp_password =
Thomas De Schampheleire
e-mail: add some default values and some examples to .ini file as comments...
r5365 #smtp_port = 25
Mads Kiilerich
docs: tweak email documentation - add gmail example...
r5844 #smtp_use_ssl = false
Celery is configured by the .ini files and run from paster now...
r776 #smtp_use_tls = false
Marcin Kuzminski
initial commit.
r0
[server:main]
Mads Kiilerich
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack...
r6509 ## Gearbox default web server ##
#use = egg:gearbox#wsgiref
Added use_poll option for latest waitress release....
r3902 ## nr of worker threads to spawn
Mads Kiilerich
config: clarify that we only recommend and support single threaded operation...
r6116 #threadpool_workers = 1
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## max request before thread respawn
Mads Kiilerich
config: clarify that we only recommend and support single threaded operation...
r6116 #threadpool_max_requests = 100
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## option to use threads of process
Switch to waitress wsgi server by default in rhodecode....
r2597 #use_threadpool = true
Marcin Kuzminski
Added few options to configs,...
r86
Mads Kiilerich
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack...
r6509 ## Gearbox gevent web server ##
#use = egg:gearbox#gevent
Added use_poll option for latest waitress release....
r3902 ## WAITRESS ##
use = egg:waitress#main
## number of worker threads
Mads Kiilerich
config: clarify that we only recommend and support single threaded operation...
r6116 threads = 1
Added use_poll option for latest waitress release....
r3902 ## MAX BODY SIZE 100GB
git executable is now configurable via .ini files
r3376 max_request_body_size = 107374182400
Added use_poll option for latest waitress release....
r3902 ## use poll instead of select, fixes fd limits, may not work on old
## windows systems.
removed yet unavailable option for waitress
r3938 #asyncore_use_poll = True
added option to ini file to define lightweight dashboard items per page before pagination
r3087
Added use_poll option for latest waitress release....
r3902 ## GUNICORN ##
#use = egg:gunicorn#main
added info about settings instance_id=* with gunicorn setup and >1 workers
r3935 ## number of process workers. You must set `instance_id = *` when this option
## is set to more than one worker
Added use_poll option for latest waitress release....
r3902 #workers = 1
## process name
Bradley M. Kuhn
Rename some strings in defaults found in config files
r4210 #proc_name = kallithea
Added use_poll option for latest waitress release....
r3902 ## type of worker class, one of sync, eventlet, gevent, tornado
## recommended for bigger setup is using of of other than sync one
fixed gunicorn example config
r3945 #worker_class = sync
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #max_requests = 1000
timeless@gmail.com
spelling: amount
r5784 ## amount of time a worker can handle request before it gets killed and
Added timeout option to gunicorn example config
r3964 ## restarted
#timeout = 3600
Added use_poll option for latest waitress release....
r3902
config: added example uwsgi configuration with auto-scaling...
r4066 ## UWSGI ##
## run with uwsgi --ini-paste-logged <inifile.ini>
#[uwsgi]
#socket = /tmp/uwsgi.sock
#master = true
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #http = 127.0.0.1:5000
config: added example uwsgi configuration with auto-scaling...
r4066
## set as deamon and redirect all output to file
Bradley M. Kuhn
Rename some strings in defaults found in config files
r4210 #daemonize = ./uwsgi_kallithea.log
config: added example uwsgi configuration with auto-scaling...
r4066
## master process PID
Bradley M. Kuhn
Rename some strings in defaults found in config files
r4210 #pidfile = ./uwsgi_kallithea.pid
config: added example uwsgi configuration with auto-scaling...
r4066
## stats server with workers statistics, use uwsgitop
## for monitoring, `uwsgitop 127.0.0.1:1717`
#stats = 127.0.0.1:1717
added memory report into uwsgi example
r4078 #memory-report = true
config: added example uwsgi configuration with auto-scaling...
r4066
## log 5XX errors
#log-5xx = true
## Set the socket listen queue size.
#listen = 256
## Gracefully Reload workers after the specified amount of managed requests
## (avoid memory leaks).
#max-requests = 1000
added larger buffers for example uwsgi setup
r4086 ## enable large buffers
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 #buffer-size = 65535
added larger buffers for example uwsgi setup
r4086
Added uwsgi timeouts into example
r4092 ## socket and http timeouts ##
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 #http-timeout = 3600
#socket-timeout = 3600
Added uwsgi timeouts into example
r4092
config: added example uwsgi configuration with auto-scaling...
r4066 ## Log requests slower than the specified number of milliseconds.
#log-slow = 10
## Exit if no app can be loaded.
#need-app = true
## Set lazy mode (load apps in workers instead of master).
#lazy = true
## scaling ##
## set cheaper algorithm to use, if not set default will be used
#cheaper-algo = spare
added ini files into codecleaner
r4068 ## minimum number of workers to keep at all times
config: added example uwsgi configuration with auto-scaling...
r4066 #cheaper = 1
added ini files into codecleaner
r4068 ## number of workers to spawn at startup
config: added example uwsgi configuration with auto-scaling...
r4066 #cheaper-initial = 1
added ini files into codecleaner
r4068 ## maximum number of workers that can be spawned
config: added example uwsgi configuration with auto-scaling...
r4066 #workers = 4
added ini files into codecleaner
r4068 ## how many workers should be spawned at a time
config: added example uwsgi configuration with auto-scaling...
r4066 #cheaper-step = 1
Added use_poll option for latest waitress release....
r3902 ## COMMON ##
Mads Kiilerich
ini: add scripts/generate-ini.py for generating all .ini files from template.ini.mako...
r5536 #host = 127.0.0.1
some logging extras for development config files
r716 host = 0.0.0.0
Marcin Kuzminski
Added pylons manage script...
r12 port = 5000
Marcin Kuzminski
initial commit.
r0
Mads Kiilerich
config: don't use rc in description of prefix middleware
r5079 ## middleware for hosting the WSGI application under a URL prefix
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 #[filter:proxy-prefix]
#use = egg:PasteDeploy#prefix
#prefix = /<your-prefix>
added comments into beaker session,...
r2615
Marcin Kuzminski
initial commit.
r0 [app:main]
Bradley M. Kuhn
First step in two-part process to rename directories to kallithea....
r4186 use = egg:kallithea
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## enable proxy prefix middleware
added comments into beaker session,...
r2615 #filter-with = proxy-prefix
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
Marcin Kuzminski
initial commit.
r0 full_stack = true
docs update, developments serves statics as default
r253 static_files = true
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 ## Available Languages:
Mads Kiilerich
i18n: drop redundant english translation...
r4985 ## cs de fr hu ja nl_BE pl pt_BR ru sk zh_CN zh_TW
lang =
Marcin Kuzminski
initial commit.
r0 cache_dir = %(here)s/data
Implemented whoosh index building as paster command....
r683 index_dir = %(here)s/data/index
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
added initial_repo_scan flag for controll if repo scaning should be performed on every startup....
r3778 ## perform a full repository scan on each server start, this should be
## set to false after first startup, to allow faster server restarts.
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #initial_repo_scan = false
added initial_repo_scan flag for controll if repo scaning should be performed on every startup....
r3778 initial_repo_scan = true
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## uncomment and set this path to use archive download cache
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 archive_cache_dir = %(here)s/tarballcache
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
## change this to unique ID for security
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 app_instance_uuid = development-not-secret
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
## cut off limit for large diffs (size in bytes)
fixes #79 cut off limit was added into .ini config files
r812 cut_off_limit = 256000
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
Bradley M. Kuhn
General renaming to Kallithea
r4212 ## force https in Kallithea, fixes https redirects, assumes it's always https
Added force https option into config files
r914 force_https = false
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
## use Strict-Transport-Security headers
make the htsts headers optional and stored in .ini file....
r3359 use_htsts = false
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
## number of commits stats will parse on each iteration
moved statistics parse_limit into .ini files...
r1076 commit_parse_limit = 25
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
## path to git executable
git executable is now configurable via .ini files
r3376 git_path = git
made git refs filter configurable ref issue #797...
r3561 ## git rev filter option, --all is the default filter, if you need to
## hide all refs in changelog switch this to --branches --tags
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #git_rev_filter = --branches --tags
made git refs filter configurable ref issue #797...
r3561
Implemented #661 Add option to include diff in RSS feed...
r3028 ## RSS feed options
rss_cut_off_limit = 256000
rss_items_per_page = 10
rss_include_diff = false
Mads Kiilerich
config: rename options to show_revision_number and show_sha_length...
r3651 ## options for showing and identifying changesets
show_sha_length = 12
domruf
config: the default for show_revision_number should be false...
r4549 show_revision_number = false
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557
Mads Kiilerich
ini: document canonical_url - it was introduced long time ago but seems useful
r5845 ## Canonical URL to use when creating full URLs in UI and texts.
## Useful when the site is available under different names or protocols.
## Defaults to what is provided in the WSGI environment.
#canonical_url = https://kallithea.example.com/repos
added alias configuration option for gists....
r3850 ## gist URL alias, used to create nicer urls for gist. This should be an
config: added example uwsgi configuration with auto-scaling...
r4066 ## url that does rewrites to _admin/gists/<gistid>.
Søren Løvborg
cleanup: use example.com for tests and examples...
r5497 ## example: http://gist.example.com/{gistid}. Empty means use the internal
## Kallithea url, ie. http[s]://kallithea.example.com/_admin/gists/<gistid>
added alias configuration option for gists....
r3850 gist_alias_url =
new feature: API access white list definition from .ini files
r3751 ## white list of API enabled controllers. This allows to add list of
## controllers to which access will be enabled by api_key. eg: to enable
## api access to raw_files put `FilesController:raw`, to enable access to patches
## add `ChangesetController:changeset_patch`. This list should be "," separated
## Syntax is <ControllerClass>:<function>. Check debug logs for generated names
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 ## Recommended settings below are commented out:
new feature: API access white list definition from .ini files
r3751 api_access_controllers_whitelist =
config: added example uwsgi configuration with auto-scaling...
r4066 # ChangesetController:changeset_patch,
# ChangesetController:changeset_raw,
# FilesController:raw,
# FilesController:archivefile
Implemented #661 Add option to include diff in RSS feed...
r3028
Implemented #647, option to pass list of default encoding used to encode to/decode from unicode
r3008 ## default encoding used to convert from and to unicode
timeless@gmail.com
spelling: separated
r5827 ## can be also a comma separated list of encoding in case of mixed encodings
implements #212 moved default encoding variable into rhodecode-config. It's now possible to change...
r2016 default_encoding = utf8
Marcin Kuzminski
initial commit.
r0
Bradley M. Kuhn
General renaming to Kallithea
r4212 ## issue tracker for Kallithea (leave blank to disable, absent for default)
Bradley M. Kuhn
Change bitbucket and hosting URL
r4179 #bugtracker = https://bitbucket.org/conservancy/kallithea/issues
Jonathan Sternberg
Allow RhodeCode maintainers to specify a custom bug tracker....
r4006
#73 mapping of commited issues from commit message into issue tracker url.
r1837 ## issue tracking mapping for commits messages
changed default issue tracker links pattern
r1933 ## comment out issue_pat, issue_server, issue_prefix to enable
#73 mapping of commited issues from commit message into issue tracker url.
r1837
## pattern to get the issues from commit messages
changed default issue tracker links pattern
r1933 ## default one used here is #<numbers> with a regex passive group for `#`
## {id} will be all groups matched from this pattern
#73 mapping of commited issues from commit message into issue tracker url.
r1837
changed default issue tracker links pattern
r1933 issue_pat = (?:\s*#)(\d+)
#73 mapping of commited issues from commit message into issue tracker url.
r1837
changed default issue tracker links pattern
r1933 ## server url to the issue, each {id} will be replaced with match
Added optional repo_name into issue tracker url to get just the name of repo without group prefix
r2339 ## fetched from the regex and {repo} is replaced with full repository name
## including groups {repo_name} is replaced with just name of repo
#73 mapping of commited issues from commit message into issue tracker url.
r1837
Søren Løvborg
cleanup: use example.com for tests and examples...
r5497 issue_server_link = https://issues.example.com/{repo}/issue/{id}
#73 mapping of commited issues from commit message into issue tracker url.
r1837
## prefix to add to link to indicate it's an url
## #314 will be replaced by <issue_prefix><id>
UI fixes...
r1865 issue_prefix = #
#73 mapping of commited issues from commit message into issue tracker url.
r1837
#518 multiple issues patterns...
r2866 ## issue_pat, issue_server_link, issue_prefix can have suffixes to specify
## multiple patterns, to other issues server, wiki or others
added ini files into codecleaner
r4068 ## below an example how to create a wiki pattern
Søren Løvborg
cleanup: use example.com for tests and examples...
r5497 # wiki-some-id -> https://wiki.example.com/some-id
#518 multiple issues patterns...
r2866
#issue_pat_wiki = (?:wiki-)(.+)
Søren Løvborg
cleanup: use example.com for tests and examples...
r5497 #issue_server_link_wiki = https://wiki.example.com/{id}
#518 multiple issues patterns...
r2866 #issue_prefix_wiki = WIKI-
Alternative HTTP response codes when client failed to Authenticate correctly
r2132 ## alternative return HTTP header for failed authentication. Default HTTP
Na'Tosha Bard
Correct capitalization and improved English text in the UI
r4527 ## response is 401 HTTPUnauthorized. Currently Mercurial clients have trouble with
Alternative HTTP response codes when client failed to Authenticate correctly
r2132 ## handling that. Set this variable to 403 to return HTTPForbidden
auth_ret_code =
configurable locking codes....
r3522 ## locking return code. When repository is locked return this HTTP code. 2XX
## codes don't break the transactions while 4XX codes do
lock_ret_code = 423
Add ini option to controll custom advanced hooks settings
r4045 ## allows to change the repository location in settings page
Added flag to controll option for changing the repos path location...
r3920 allow_repo_location_change = True
configurable locking codes....
r3522
Add ini option to controll custom advanced hooks settings
r4045 ## allows to setup custom hooks in settings page
allow_custom_hooks_settings = True
Takumi IINO
indexers: load additional indexers settings from ini
r5559 ## extra extensions for indexing, space separated and without the leading '.'.
# index.extensions =
# gemfile
# lock
## extra filenames for indexing, space separated
# index.filenames =
# .dockerignore
# .editorconfig
# INSTALL
# CHANGELOG
Marcin Kuzminski
Added sqlalchemy support...
r49 ####################################
Celery is configured by the .ini files and run from paster now...
r776 ### CELERY CONFIG ####
####################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
Celery is configured by the .ini files and run from paster now...
r776 use_celery = false
Mads Kiilerich
celery: use Celery 3 config settings instead of deprecated...
r6138
## Example: connect to the virtual host 'rabbitmqhost' on localhost as rabbitmq:
broker.url = amqp://rabbitmq:qewqew@localhost:5672/rabbitmqhost
Celery is configured by the .ini files and run from paster now...
r776
Bradley M. Kuhn
First step in two-part process to rename directories to kallithea....
r4186 celery.imports = kallithea.lib.celerylib.tasks
Mads Kiilerich
celery: use Celery 3 config settings instead of deprecated...
r6138 celery.accept.content = pickle
Celery is configured by the .ini files and run from paster now...
r776 celery.result.backend = amqp
celery.result.dburi = amqp://
celery.result.serialier = json
#celery.send.task.error.emails = true
#celery.amqp.task.result.expires = 18000
celeryd.concurrency = 2
moved statistics parse_limit into .ini files...
r1076 celeryd.max.tasks.per.child = 1
Celery is configured by the .ini files and run from paster now...
r776
Mads Kiilerich
celery: use Celery 3 config settings instead of deprecated...
r6138 ## If true, tasks will never be sent to the queue, but executed locally instead.
Celery is configured by the .ini files and run from paster now...
r776 celery.always.eager = false
####################################
Marcin Kuzminski
Added sqlalchemy support...
r49 ### BEAKER CACHE ####
####################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 beaker.cache.data_dir = %(here)s/data/cache/data
beaker.cache.lock_dir = %(here)s/data/cache/lock
moved statistics parse_limit into .ini files...
r1076
Mads Kiilerich
cleanup: kill unused beaker cache regions
r5399 beaker.cache.regions = short_term,long_term,sql_cache_short
moved out sqlalchemy cache from meta to the config files....
r609
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 beaker.cache.short_term.type = memory
beaker.cache.short_term.expire = 60
Cached readme generation...
r1607 beaker.cache.short_term.key_length = 256
moved out sqlalchemy cache from meta to the config files....
r609
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 beaker.cache.long_term.type = memory
beaker.cache.long_term.expire = 36000
Cached readme generation...
r1607 beaker.cache.long_term.key_length = 256
added password validation, second try on paster setup-app,...
r597
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 beaker.cache.sql_cache_short.type = memory
beaker.cache.sql_cache_short.expire = 10
Cached readme generation...
r1607 beaker.cache.sql_cache_short.key_length = 256
moved out sqlalchemy cache from meta to the config files....
r609
updated config files,...
r436 ####################################
### BEAKER SESSION ####
####################################
Mads Kiilerich
docs: improve documentation of beaker session configuration...
r5400
## Name of session cookie. Should be unique for a given host and path, even when running
## on different ports. Otherwise, cookie sessions will be shared and messed up.
beaker.session.key = kallithea
## Sessions should always only be accessible by the browser, not directly by JavaScript.
beaker.session.httponly = true
## Session lifetime. 2592000 seconds is 30 days.
beaker.session.timeout = 2592000
## Server secret used with HMAC to ensure integrity of cookies.
beaker.session.secret = development-not-secret
## Further, encrypt the data with AES.
#beaker.session.encrypt_key = <key_for_encryption>
#beaker.session.validate_key = <validation_key>
added ini files into codecleaner
r4068 ## Type of storage used for the session, current types are
## dbm, file, memcached, database, and memory.
Mads Kiilerich
docs: improve documentation of beaker session configuration...
r5400
## File system storage of session data. (default)
#beaker.session.type = file
db based session example for .ini
r1660
Mads Kiilerich
docs: improve documentation of beaker session configuration...
r5400 ## Cookie only, store all session data inside the cookie. Requires secure secrets.
#beaker.session.type = cookie
## Database storage of session data.
db based session example for .ini
r1660 #beaker.session.type = ext:database
Bradley M. Kuhn
Rename some strings in defaults found in config files
r4210 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea
added ini files into codecleaner
r4068 #beaker.session.table_name = db_session
db based session example for .ini
r1660
Added Errormator and Sentry support part of pull request #71
r2939 ############################
## ERROR HANDLING SYSTEMS ##
############################
####################
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 ### [appenlight] ###
Added Errormator and Sentry support part of pull request #71
r2939 ####################
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 ## AppEnlight is tailored to work with Kallithea, see
## http://appenlight.com for details how to obtain an account
## you must install python package `appenlight_client` to make it work
Added Errormator and Sentry support part of pull request #71
r2939
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 ## appenlight enabled
appenlight = false
Added Errormator and Sentry support part of pull request #71
r2939
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.server_url = https://api.appenlight.com
appenlight.api_key = YOUR_API_KEY
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## TWEAK AMOUNT OF INFO SENT HERE
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## enables 404 error logging (default False)
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.report_404 = false
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## time in seconds after request is considered being slow (default 1)
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.slow_request_time = 1
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## record slow requests in application
## (needs to be enabled for slow datastore recording and time tracking)
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.slow_requests = true
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## enable hooking to application loggers
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 #appenlight.logging = true
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## minimum log level for log capture
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 #appenlight.logging.level = WARNING
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## send logs only from erroneous/slow requests
## (saves API quota for intensive logging)
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.logging_on_error = false
Added Errormator and Sentry support part of pull request #71
r2939
timeless@gmail.com
spelling: additional
r5782 ## list of additional keywords that should be grabbed from environ object
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## can be string with comma separated list of words in lowercase
## (by default client will always send following info:
added ini files into codecleaner
r4068 ## 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## start with HTTP* this list be extended with additional keywords here
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.environ_keys_whitelist =
Added Errormator and Sentry support part of pull request #71
r2939
added ini files into codecleaner
r4068 ## list of keywords that should be blanked from request object
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## can be string with comma separated list of words in lowercase
added ini files into codecleaner
r4068 ## (by default client will always blank keys that contain following words
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
## this list be extended with additional keywords set here
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 appenlight.request_keys_blacklist =
Added Errormator and Sentry support part of pull request #71
r2939
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## list of namespaces that should be ignores when gathering log entries
## can be string with comma separated list of namespaces
Brandon Jones
middleware: replace references to Errormator with AppEnlight....
r6335 ## (by default the client ignores own entries: appenlight_client.client)
appenlight.log_namespace_blacklist =
Added Errormator and Sentry support part of pull request #71
r2939
################
### [sentry] ###
################
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## sentry is a alternative open source error aggregator
added ini files into codecleaner
r4068 ## you must install python packages `sentry` and `raven` to enable
Added Errormator and Sentry support part of pull request #71
r2939
sentry.dsn = YOUR_DNS
sentry.servers =
sentry.name =
sentry.key =
sentry.public_key =
sentry.secret_key =
sentry.project =
sentry.site =
sentry.include_paths =
sentry.exclude_paths =
Marcin Kuzminski
Added pylons manage script...
r12 ################################################################################
## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
## execute malicious code after an exception is raised. ##
################################################################################
#set debug = false
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 set debug = true
Marcin Kuzminski
initial commit.
r0
Marcin Kuzminski
Added sqlalchemy support...
r49 ##################################
### LOGVIEW CONFIG ###
##################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
Marcin Kuzminski
Added sqlalchemy support...
r49 logview.sqlalchemy = #faa
logview.pylons.templating = #bfb
logview.pylons.util = #eee
#########################################################
### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
#########################################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
# SQLITE [default]
Thomas De Schampheleire
Turbogears2 migration: use sqlalchemy.url iso sqlalchemy.db1.url...
r6177 sqlalchemy.url = sqlite:///%(here)s/kallithea.db?timeout=60
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
# POSTGRESQL
Thomas De Schampheleire
Turbogears2 migration: use sqlalchemy.url iso sqlalchemy.db1.url...
r6177 #sqlalchemy.url = postgresql://user:pass@localhost/kallithea
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
# MySQL
Thomas De Schampheleire
Turbogears2 migration: use sqlalchemy.url iso sqlalchemy.db1.url...
r6177 #sqlalchemy.url = mysql://user:pass@localhost/kallithea?charset=utf8
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
# see sqlalchemy docs for others
Thomas De Schampheleire
Turbogears2 migration: use sqlalchemy.url iso sqlalchemy.db1.url...
r6177 sqlalchemy.echo = false
sqlalchemy.pool_recycle = 3600
Marcin Kuzminski
Added sqlalchemy support...
r49
Marcin Kuzminski
Added pylons manage script...
r12 ################################
Søren Løvborg
db: enable use of main Kallithea config as Alembic config...
r5982 ### ALEMBIC CONFIGURATION ####
################################
[alembic]
script_location = kallithea:alembic
Marcin Kuzminski
Added sqlalchemy support...
r49
Marcin Kuzminski
Added pylons manage script...
r12 ################################
### LOGGING CONFIGURATION ####
################################
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
Marcin Kuzminski
initial commit.
r0 [loggers]
Alessandro Molina
backend: replace Pylons with TurboGears2...
r6522 keys = root, routes, kallithea, sqlalchemy, tg, gearbox, beaker, templates, whoosh_indexer
Marcin Kuzminski
initial commit.
r0
[handlers]
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 keys = console, console_sql
Marcin Kuzminski
initial commit.
r0
[formatters]
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 keys = generic, color_formatter, color_formatter_sql
Marcin Kuzminski
initial commit.
r0
Marcin Kuzminski
Added pylons manage script...
r12 #############
Marcin Kuzminski
initial commit.
r0 ## LOGGERS ##
Marcin Kuzminski
Added pylons manage script...
r12 #############
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225
Marcin Kuzminski
initial commit.
r0 [logger_root]
Marcin Kuzminski
added log4j to development,
r15 level = NOTSET
Marcin Kuzminski
Added pylons manage script...
r12 handlers = console
Marcin Kuzminski
initial commit.
r0
[logger_routes]
Marcin Kuzminski
Updated logginf of routes
r69 level = DEBUG
added ini files into codecleaner
r4068 handlers =
Marcin Kuzminski
initial commit.
r0 qualname = routes.middleware
Implemented show_id function that is a configurable way to display sha hashes in the changelog.
r3557 ## "level = DEBUG" logs the route matched and routing variables.
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 propagate = 1
Marcin Kuzminski
initial commit.
r0
some logging extras for development config files
r716 [logger_beaker]
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 level = DEBUG
added ini files into codecleaner
r4068 handlers =
some logging extras for development config files
r716 qualname = beaker.container
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 propagate = 1
some logging extras for development config files
r716
[logger_templates]
level = INFO
added ini files into codecleaner
r4068 handlers =
some logging extras for development config files
r716 qualname = pylons.templating
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 propagate = 1
some logging extras for development config files
r716
Bradley M. Kuhn
Rename some strings in init files and logger names
r4207 [logger_kallithea]
Marcin Kuzminski
initial commit.
r0 level = DEBUG
added ini files into codecleaner
r4068 handlers =
Bradley M. Kuhn
Rename some strings in init files and logger names
r4207 qualname = kallithea
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 propagate = 1
Marcin Kuzminski
Added pylons manage script...
r12
Alessandro Molina
backend: replace Pylons with TurboGears2...
r6522 [logger_tg]
level = DEBUG
handlers =
qualname = tg
propagate = 1
Mads Kiilerich
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack...
r6509 [logger_gearbox]
level = DEBUG
handlers =
qualname = gearbox
propagate = 1
Marcin Kuzminski
Added pylons manage script...
r12 [logger_sqlalchemy]
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 level = INFO
handlers = console_sql
Marcin Kuzminski
Added pylons manage script...
r12 qualname = sqlalchemy.engine
added empty controllers for branches tags files graph, routing and test for them
r93 propagate = 0
Marcin Kuzminski
Added pylons manage script...
r12
Whoosh logging is now controlled by the .ini files logging setup
r2102 [logger_whoosh_indexer]
level = DEBUG
added ini files into codecleaner
r4068 handlers =
Whoosh logging is now controlled by the .ini files logging setup
r2102 qualname = whoosh_indexer
propagate = 1
Marcin Kuzminski
Added pylons manage script...
r12 ##############
Marcin Kuzminski
initial commit.
r0 ## HANDLERS ##
Marcin Kuzminski
Added pylons manage script...
r12 ##############
Marcin Kuzminski
initial commit.
r0
[handler_console]
class = StreamHandler
args = (sys.stderr,)
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #level = INFO
Mads Kiilerich
ini: add scripts/generate-ini.py for generating all .ini files from template.ini.mako...
r5536 level = DEBUG
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #formatter = generic
Added colored formatter to project, and configs
r153 formatter = color_formatter
Marcin Kuzminski
initial commit.
r0
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 [handler_console_sql]
class = StreamHandler
args = (sys.stderr,)
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #level = WARN
Mads Kiilerich
ini: add scripts/generate-ini.py for generating all .ini files from template.ini.mako...
r5536 level = DEBUG
Mads Kiilerich
Align and update the outdated ini files and templates...
r4225 #formatter = generic
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 formatter = color_formatter_sql
Marcin Kuzminski
Added pylons manage script...
r12 ################
Marcin Kuzminski
initial commit.
r0 ## FORMATTERS ##
Marcin Kuzminski
Added pylons manage script...
r12 ################
Marcin Kuzminski
initial commit.
r0
[formatter_generic]
Added colored formatter to project, and configs
r153 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
Marcin Kuzminski
Static files for production fixed...
r46 datefmt = %Y-%m-%d %H:%M:%S
Marcin Kuzminski
initial commit.
r0
Added colored formatter to project, and configs
r153 [formatter_color_formatter]
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 class = kallithea.lib.colored_formatter.ColorFormatter
format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
timperproxy will just measure the time of queries, and formatting will be handled by the new sql_formatter of queries from sqlalchemy itself. Updated ini files for new way logging
r1186 datefmt = %Y-%m-%d %H:%M:%S
[formatter_color_formatter_sql]
Mads Kiilerich
ini: consistently write #-disabled lines without space after # and with single space around =
r5364 class = kallithea.lib.colored_formatter.ColorFormatterSql
format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
changed dafault to use sqlite for dev
r1278 datefmt = %Y-%m-%d %H:%M:%S