about summary refs log tree commit diff
path: root/config/environments/production.rb
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-03-05 04:28:24 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-04 20:28:24 +0100
commitc110fa62ac0f475efd64572026835a7514c410ae (patch)
tree1ef16b5369a589fdb60b557f68c5a8288eaa83b6 /config/environments/production.rb
parent7a6eaad445ca009001a31657d163b0316b27e9e4 (diff)
Provide default OTP_SECRET value for development environment (#6617)
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 51288bc39..3136a40fc 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -96,4 +96,6 @@ Rails.application.configure do
     'X-Content-Type-Options' => 'nosniff',
     'X-XSS-Protection'       => '1; mode=block',
   }
+
+  config.x.otp_secret = ENV.fetch('OTP_SECRET')
 end