Skip to content
Snippets Groups Projects
Commit 0d66d4d3 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Fix reading session_expire_delay when application settings are not yet created...

Fix reading session_expire_delay when application settings are not yet created and migrations are not yet done
parent 0d610270
Branches
Tags
1 merge request!1268Fix reading session_expire_delay
Pipeline #
Loading
Loading
@@ -2,7 +2,12 @@
 
require 'gitlab/current_settings'
include Gitlab::CurrentSettings
# allow it to fail: it may to do so when create_from_defaults is executed before migrations are actually done
begin
Settings.gitlab['session_expire_delay'] = current_application_settings.session_expire_delay
rescue
end
 
Gitlab::Application.config.session_store(
:redis_store, # Using the cookie_store would enable session replay attacks.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment