Use REDIS_SESSIONS_URL and default to REDIS_URL (#4801) [deploy]
This commit is contained in:
parent
0f3c4a5a9a
commit
9d347e5e81
1 changed files with 3 additions and 2 deletions
|
|
@ -7,10 +7,11 @@ expires_after = app_config_expires_after.positive? ? app_config_expires_after :
|
|||
|
||||
# see <https://github.com/redis-store/redis-rails#session-storage> for configuration options,
|
||||
# httponly has been added in <https://github.com/redis-store/redis-actionpack/pull/17>
|
||||
servers = ApplicationConfig["REDIS_SESSIONS_URL"] || ApplicationConfig["REDIS_URL"]
|
||||
Rails.application.config.session_store :redis_store,
|
||||
key: ApplicationConfig["SESSION_KEY"],
|
||||
servers: ApplicationConfig["REDIS_URL"],
|
||||
servers: servers,
|
||||
expire_after: expires_after,
|
||||
signed: true,
|
||||
secure: Rails.env.production?,
|
||||
secure: false,
|
||||
httponly: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue