mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Merge pull request #588 from internetee/disable-session-timeout-for-development-and-staging
Set session timeout to 5 years in development and staging environments
This commit is contained in:
commit
31fdf8a290
3 changed files with 5 additions and 5 deletions
|
@ -127,3 +127,5 @@ payments_lhv_url: 'https://www.seb.ee/cgi-bin/dv.sh/ipank.r'
|
|||
payments_lhv_bank_certificate: 'eyp_pub.pem'
|
||||
payments_lhv_seller_private: 'kaupmees_priv.pem'
|
||||
payments_lhv_seller_account: 'testvpos'
|
||||
|
||||
user_session_timeout: '3600' # 1 hour
|
||||
|
|
|
@ -155,7 +155,7 @@ Devise.setup do |config|
|
|||
# ==> Configuration for :timeoutable
|
||||
# The time you want to timeout the user session without activity. After this
|
||||
# time the user will be asked for credentials again. Default is 30 minutes.
|
||||
config.timeout_in = 8.hours
|
||||
config.timeout_in = ENV['user_session_timeout'].to_i.seconds if ENV['user_session_timeout']
|
||||
|
||||
# If true, expires auth token on session timeout.
|
||||
# config.expire_auth_token_on_timeout = false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
required = %w(
|
||||
Figaro.require_keys(%w[
|
||||
app_name
|
||||
zonefile_export_dir
|
||||
secret_key_base
|
||||
|
@ -11,6 +11,4 @@ required = %w(
|
|||
legal_documents_dir
|
||||
bank_statement_import_dir
|
||||
time_zone
|
||||
)
|
||||
|
||||
Figaro.require_keys(required)
|
||||
])
|
Loading…
Add table
Add a link
Reference in a new issue