##// END OF EJS Templates
changed session to client side encrypted cookie, for better horizontal scalability of rhodecode
marcink -
r1710:79a06e68 beta
parent child Browse files
Show More
@@ -137,10 +137,10 b' beaker.cache.sql_cache_long.key_length ='
137 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
137 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
138 #beaker.session.table_name = db_session
138 #beaker.session.table_name = db_session
139
139
140 beaker.session.type = file
140 beaker.session.type = cookie
141
142 beaker.session.key = rhodecode
141 beaker.session.key = rhodecode
143 beaker.session.secret = g654dcno0-9873jhgfreyu
142 beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
143 beaker.session.validate_key = 9712sds2212c--zxc123
144 beaker.session.timeout = 36000
144 beaker.session.timeout = 36000
145
145
146 ##auto save the session to not to use .save()
146 ##auto save the session to not to use .save()
@@ -56,13 +56,14 b' use_gravatar = true'
56 container_auth_enabled = false
56 container_auth_enabled = false
57 proxypass_auth_enabled = false
57 proxypass_auth_enabled = false
58
58
59 ## available vars
59 ## overwrite schema of clone url
60 ## scheme - http/https
60 # available vars:
61 ## user - current user
61 # scheme - http/https
62 ## pass - password
62 # user - current user
63 ## netloc - network location
63 # pass - password
64 ## path - usually repo_name
64 # netloc - network location
65 clone_uri = {scheme}://{user}{pass}{netloc}{path}
65 # path - usually repo_name
66 # clone_uri = {scheme}://{user}{pass}{netloc}{path}
66
67
67 ####################################
68 ####################################
68 ### CELERY CONFIG ####
69 ### CELERY CONFIG ####
@@ -136,10 +137,10 b' beaker.cache.sql_cache_long.key_length ='
136 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
137 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
137 #beaker.session.table_name = db_session
138 #beaker.session.table_name = db_session
138
139
139 beaker.session.type = file
140 beaker.session.type = cookie
140
141 beaker.session.key = rhodecode
141 beaker.session.key = rhodecode
142 beaker.session.secret = g654dcno0-9873jhgfreyu
142 beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
143 beaker.session.validate_key = 9712sds2212c--zxc123
143 beaker.session.timeout = 36000
144 beaker.session.timeout = 36000
144
145
145 ##auto save the session to not to use .save()
146 ##auto save the session to not to use .save()
@@ -131,10 +131,16 b' beaker.cache.sql_cache_long.key_length ='
131 ## dbm, file, memcached, database, and memory.
131 ## dbm, file, memcached, database, and memory.
132 ## The storage uses the Container API
132 ## The storage uses the Container API
133 ##that is also used by the cache system.
133 ##that is also used by the cache system.
134 beaker.session.type = file
135
134
135 #db session example
136 #beaker.session.type = ext:database
137 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
138 #beaker.session.table_name = db_session
139
140 beaker.session.type = cookie
136 beaker.session.key = rhodecode
141 beaker.session.key = rhodecode
137 beaker.session.secret = ${app_instance_secret}
142 beaker.session.encrypt_key = ${app_instance_secret}
143 beaker.session.validate_key = ${app_instance_secret}
138 beaker.session.timeout = 36000
144 beaker.session.timeout = 36000
139
145
140 ##auto save the session to not to use .save()
146 ##auto save the session to not to use .save()
@@ -142,7 +148,6 b' beaker.session.auto = False'
142
148
143 ##true exire at browser close
149 ##true exire at browser close
144 #beaker.session.cookie_expires = 3600
150 #beaker.session.cookie_expires = 3600
145
146
151
147 ################################################################################
152 ################################################################################
148 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
153 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
General Comments 0
You need to be logged in to leave comments. Login now