diff --git a/app/controllers/epp/base_controller.rb b/app/controllers/epp/base_controller.rb index e9d58a4ed..ee8592c82 100644 --- a/app/controllers/epp/base_controller.rb +++ b/app/controllers/epp/base_controller.rb @@ -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 diff --git a/config/application.yml.sample b/config/application.yml.sample index 2cd19b768..c35a8a5bb 100644 --- a/config/application.yml.sample +++ b/config/application.yml.sample @@ -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'