comparison production.ini @ 2615:6f44b6d5aa60 beta

added comments into beaker session, - added cookie_path option as example - added prefix middleware as example usage - increased session timeout to 30days
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 16 Jul 2012 00:40:34 +0200
parents 7b092b919f4f
children 3aad896d9a02
comparison
equal deleted inserted replaced
2614:3f50a5e8fc4d 2615:6f44b6d5aa60
41 #use = egg:Paste#http 41 #use = egg:Paste#http
42 use = egg:waitress#main 42 use = egg:waitress#main
43 host = 127.0.0.1 43 host = 127.0.0.1
44 port = 8001 44 port = 8001
45 45
46 [filter:proxy-prefix]
47 # prefix middleware for rc
48 use = egg:PasteDeploy#prefix
49 prefix = /<your-prefix>
50
46 [app:main] 51 [app:main]
47 use = egg:rhodecode 52 use = egg:rhodecode
53 #filter-with = proxy-prefix
48 full_stack = true 54 full_stack = true
49 static_files = true 55 static_files = true
50 # Optional Languages 56 # Optional Languages
51 # en, fr, ja, pt_BR, zh_CN, zh_TW 57 # en, fr, ja, pt_BR, zh_CN, zh_TW
52 lang = en 58 lang = en
167 ## Type of storage used for the session, current types are 173 ## Type of storage used for the session, current types are
168 ## dbm, file, memcached, database, and memory. 174 ## dbm, file, memcached, database, and memory.
169 ## The storage uses the Container API 175 ## The storage uses the Container API
170 ## that is also used by the cache system. 176 ## that is also used by the cache system.
171 177
172 ## db session example 178 ## db session ##
173
174 #beaker.session.type = ext:database 179 #beaker.session.type = ext:database
175 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode 180 #beaker.session.sa.url = postgresql://postgres:qwe@localhost/rhodecode
176 #beaker.session.table_name = db_session 181 #beaker.session.table_name = db_session
177 182
178 ## encrypted cookie session, good for many instances 183 ## encrypted cookie client side session, good for many instances ##
179 #beaker.session.type = cookie 184 #beaker.session.type = cookie
180 185
181 beaker.session.type = file 186 ## file based cookies (default) ##
187 #beaker.session.type = file
188
189
182 beaker.session.key = rhodecode 190 beaker.session.key = rhodecode
183 # secure cookie requires AES python libraries 191 ## secure cookie requires AES python libraries ##
184 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu 192 #beaker.session.encrypt_key = g654dcno0-9873jhgfreyu
185 #beaker.session.validate_key = 9712sds2212c--zxc123 193 #beaker.session.validate_key = 9712sds2212c--zxc123
186 beaker.session.timeout = 36000 194 ## sets session as invalid if it haven't been accessed for given amount of time
195 beaker.session.timeout = 2592000
187 beaker.session.httponly = true 196 beaker.session.httponly = true
188 197 #beaker.session.cookie_path = /<your-prefix>
189 ## uncomment for https secure cookie 198
199 ## uncomment for https secure cookie ##
190 beaker.session.secure = false 200 beaker.session.secure = false
191 201
192 ##auto save the session to not to use .save() 202 ## auto save the session to not to use .save() ##
193 beaker.session.auto = False 203 beaker.session.auto = False
194 204
195 ##true exire at browser close 205 ## default cookie expiration time in seconds `true` expire at browser close ##
196 #beaker.session.cookie_expires = 3600 206 #beaker.session.cookie_expires = 3600
197 207
198 208
199 ################################################################################ 209 ################################################################################
200 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## 210 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##