about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authortateisu <tateisu@gmail.com>2020-10-07 04:29:22 +0900
committerGitHub <noreply@github.com>2020-10-06 21:29:22 +0200
commit7919418e4c445950cb526a42941186d1eb28c29e (patch)
tree53f249c9ce49ee4fee9b88a82be305b1876a54f5 /config/initializers
parentda10c5c707c4b886ef151b55080562356b1f417e (diff)
add S3_READ_TIMEOUT environment variable (#14952)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/paperclip.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb
index b4849370d..b841d5220 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -62,7 +62,7 @@ if ENV['S3_ENABLED'] == 'true'
     s3_options: {
       signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' },
       http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT'){ '5' }.to_i,
-      http_read_timeout: 5,
+      http_read_timeout: ENV.fetch('S3_READ_TIMEOUT'){ '5' }.to_i,
       http_idle_timeout: 5,
       retry_limit: 0,
     }