Mercurial > kallithea
changeset 1771:5948ab03e639 beta
default session settings was reverted to file.
- encrypted cookie requires additional libs, might be confusing for new users
- others who need it still will enabled it
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 09 Dec 2011 13:45:48 +0200 |
parents | 184557472f5c |
children | c83d3d42ab92 |
files | development.ini production.ini rhodecode/config/deployment.ini_tmpl |
diffstat | 3 files changed, 29 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/development.ini Thu Dec 08 04:32:42 2011 +0200 +++ b/development.ini Fri Dec 09 13:45:48 2011 +0200 @@ -33,7 +33,7 @@ threadpool_workers = 5 ##max request before thread respawn -threadpool_max_requests = 6 +threadpool_max_requests = 10 ##option to use threads of process use_threadpool = true @@ -131,20 +131,25 @@ ## Type of storage used for the session, current types are ## dbm, file, memcached, database, and memory. ## The storage uses the Container API -##that is also used by the cache system. +## that is also used by the cache system. -#db session example +## db session example + #beaker.session.type = ext:database #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode #beaker.session.table_name = db_session -beaker.session.type = cookie +## encrypted cookie session, good for many instances +#beaker.session.type = cookie + +beaker.session.type = file beaker.session.key = rhodecode beaker.session.encrypt_key = g654dcno0-9873jhgfreyu beaker.session.validate_key = 9712sds2212c--zxc123 beaker.session.timeout = 36000 beaker.session.httponly = true -# uncomment for https secure cookie + +## uncomment for https secure cookie beaker.session.secure = false ##auto save the session to not to use .save()
--- a/production.ini Thu Dec 08 04:32:42 2011 +0200 +++ b/production.ini Fri Dec 09 13:45:48 2011 +0200 @@ -131,20 +131,25 @@ ## Type of storage used for the session, current types are ## dbm, file, memcached, database, and memory. ## The storage uses the Container API -##that is also used by the cache system. +## that is also used by the cache system. -#db session example +## db session example + #beaker.session.type = ext:database #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode #beaker.session.table_name = db_session -beaker.session.type = cookie +## encrypted cookie session, good for many instances +#beaker.session.type = cookie + +beaker.session.type = file beaker.session.key = rhodecode beaker.session.encrypt_key = g654dcno0-9873jhgfreyu beaker.session.validate_key = 9712sds2212c--zxc123 beaker.session.timeout = 36000 beaker.session.httponly = true -# uncomment for https secure cookie + +## uncomment for https secure cookie beaker.session.secure = false ##auto save the session to not to use .save() @@ -153,7 +158,7 @@ ##true exire at browser close #beaker.session.cookie_expires = 3600 - + ################################################################################ ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
--- a/rhodecode/config/deployment.ini_tmpl Thu Dec 08 04:32:42 2011 +0200 +++ b/rhodecode/config/deployment.ini_tmpl Fri Dec 09 13:45:48 2011 +0200 @@ -131,20 +131,25 @@ ## Type of storage used for the session, current types are ## dbm, file, memcached, database, and memory. ## The storage uses the Container API -##that is also used by the cache system. +## that is also used by the cache system. -#db session example +## db session example + #beaker.session.type = ext:database #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode #beaker.session.table_name = db_session -beaker.session.type = cookie +## encrypted cookie session, good for many instances +#beaker.session.type = cookie + +beaker.session.type = file beaker.session.key = rhodecode beaker.session.encrypt_key = ${app_instance_secret} beaker.session.validate_key = ${app_instance_secret} beaker.session.timeout = 36000 beaker.session.httponly = true -# uncomment for https secure cookie + +## uncomment for https secure cookie beaker.session.secure = false ##auto save the session to not to use .save()