about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authortateisu <tateisu@gmail.com>2019-12-03 05:05:27 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-12-02 21:05:27 +0100
commitf1ef777d40235dc922a0b56da9fc00b98827c189 (patch)
tree01ab1a182cf1048de99ae3c6266135b62d9ece96 /config
parente598ce0bd9dea9b8e0f9fe26a1d78b8ca4838e22 (diff)
add S3_OPEN_TIMEOUT environment variable (#12459)
Diffstat (limited to 'config')
-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 d3602e655..96607b7ce 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -42,7 +42,7 @@ if ENV['S3_ENABLED'] == 'true'
 
     s3_options: {
       signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' },
-      http_open_timeout: 5,
+      http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT'){ '5' }.to_i,
       http_read_timeout: 5,
       http_idle_timeout: 5,
       retry_limit: 0,