make session store configurable via env var SESSION_STORE

pull/1239/head
Martin Linkhorst 11 years ago
parent 4d4a4695a2
commit 1bca417b9f
  1. 2
      config/initializers/session_store.rb
  2. 2
      lib/open_project/configuration.rb

@ -31,7 +31,7 @@
config = OpenProject::Configuration
session_store = config['session_store'] || :cookie_store
session_store = config['session_store'].to_sym || :cookie_store
relative_url_root = config['rails_relative_url_root'].presence
session_options = {

@ -46,6 +46,8 @@ module OpenProject
'cache_namespace' => nil,
# use dalli defaults for memcache
'cache_memcache_server' => nil,
# where to store session data
'session_store' => nil,
# url-path prefix
'rails_relative_url_root' => "",

Loading…
Cancel
Save