2020-03-09 12:12:42 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-05-05 03:10:25 +02:00
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
2022-07-29 15:28:57 +02:00
|
|
|
redis_host = ENV['REDIS_HOST'] || 'localhost'
|
|
|
|
|
|
|
|
Rails.application.config.session_store :redis_session_store,
|
|
|
|
redis: {
|
|
|
|
expire_after: 14.days, # cookie expiration
|
|
|
|
ttl: 14.days, # Redis expiration, defaults to 'expire_after'
|
|
|
|
key_prefix: 'fabmanager:session:',
|
|
|
|
url: "redis://#{redis_host}:6379",
|
|
|
|
},
|
2020-05-13 14:03:58 +02:00
|
|
|
key: '_Fab-manager_session',
|
|
|
|
secure: (Rails.env.production? || Rails.env.staging?) && !Rails.application.secrets.allow_insecure_http
|