about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-03-03 20:37:22 +0100
committerGitHub <noreply@github.com>2023-03-03 20:37:22 +0100
commit02c6bad3ca7b59a8be6403fbbddd7d46346532dc (patch)
tree08583437227a1c0475f3a7d6d7b9881844180ac9 /config
parentf8bb4d0d6b1050de481187e9f034b8bbb649d931 (diff)
Change unintended SMTP read timeout from 5 seconds to 20 seconds (#23750)
Diffstat (limited to 'config')
-rw-r--r--config/environments/production.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 99c9bb40c..345a255a7 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -128,6 +128,7 @@ Rails.application.configure do
     enable_starttls_auto: enable_starttls_auto,
     tls: ENV['SMTP_TLS'].presence && ENV['SMTP_TLS'] == 'true',
     ssl: ENV['SMTP_SSL'].presence && ENV['SMTP_SSL'] == 'true',
+    read_timeout: 20,
   }
 
   config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym