Browse Source

Change unintended SMTP read timeout from 5 seconds to 20 seconds (#23750)

closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
02c6bad3ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      config/environments/production.rb

+ 1
- 0
config/environments/production.rb View File

@ -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

Loading…
Cancel
Save