Commit c447a2131d864cb715c0fb9ba562db67ade2f7c6

Authored by Marin Jankovski
1 parent 73af33e4

Enable secure option if https is used.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/initializers/session_store.rb
@@ -4,7 +4,7 @@ Gitlab::Application.config.session_store( @@ -4,7 +4,7 @@ Gitlab::Application.config.session_store(
4 :redis_store, # Using the cookie_store would enable session replay attacks. 4 :redis_store, # Using the cookie_store would enable session replay attacks.
5 servers: Gitlab::Application.config.cache_store.last, # re-use the Redis config from the Rails cache store 5 servers: Gitlab::Application.config.cache_store.last, # re-use the Redis config from the Rails cache store
6 key: '_gitlab_session', 6 key: '_gitlab_session',
7 - secure: Gitlab::Application.config.force_ssl, 7 + secure: Gitlab.config.gitlab.https,
8 httponly: true, 8 httponly: true,
9 path: (Rails.application.config.relative_url_root.nil?) ? '/' : Rails.application.config.relative_url_root 9 path: (Rails.application.config.relative_url_root.nil?) ? '/' : Rails.application.config.relative_url_root
10 ) 10 )