Remove hardcoded value

This commit is contained in:
Artur Beljajev 2019-09-17 18:24:15 +03:00 committed by Alex Sherman
parent 915ebbff08
commit 44e9b1b5c4
2 changed files with 3 additions and 1 deletions

View file

@ -368,7 +368,7 @@ module Epp
end
def session_timeout_reached?
timeout = 5.minutes
timeout = ENV['epp_session_timeout_seconds'].to_i.seconds
epp_session.updated_at < (Time.zone.now - timeout)
end

View file

@ -153,6 +153,8 @@ lhv_keystore_password:
lhv_ca_file: # Needed only in dev mode
lhv_dev_mode: 'false'
epp_session_timeout_seconds: '300'
# Since the keys for staging are absent from the repo, we need to supply them separate for testing.
test:
payments_seb_bank_certificate: 'test/fixtures/files/seb_bank_cert.pem'