##// END OF EJS Templates
redis: fixed new redis url schema requirement for connection string
marcink -
r3867:2bc3e4d7 default
parent child Browse files
Show More
@@ -410,6 +410,12 b' def sanitize_settings_and_apply_defaults'
410 "Using the following Mako template directories: %s",
410 "Using the following Mako template directories: %s",
411 mako_directories)
411 mako_directories)
412
412
413 # NOTE(marcink): fix redis requirement for schema of connection since 3.X
414 if 'beaker.session.type' in settings and settings['beaker.session.type'] == 'ext:redis':
415 raw_url = settings['beaker.session.url']
416 if not raw_url.startswith(('redis://', 'rediss://', 'unix://')):
417 settings['beaker.session.url'] = 'redis://' + raw_url
418
413 # Default includes, possible to change as a user
419 # Default includes, possible to change as a user
414 pyramid_includes = settings.setdefault('pyramid.includes', [
420 pyramid_includes = settings.setdefault('pyramid.includes', [
415 'rhodecode.lib.middleware.request_wrapper',
421 'rhodecode.lib.middleware.request_wrapper',
General Comments 0
You need to be logged in to leave comments. Login now