about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-07 15:43:56 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-07 15:43:56 +0100
commit7ddec6e7c3a8bdfcc69d28a723caca61cdb2a17c (patch)
tree431efefb3c19300d4d3995cd43378a460ecdbe2b
parent989c3f40022bc65d69915be597acda3c4d58de60 (diff)
Add read timeout to paperclip when it's downloading remote images
-rw-r--r--config/initializers/paperclip.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb
index cb7ed4487..4d6154562 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -1,5 +1,7 @@
 # frozen_string_literal: true
 
+Paperclip::Attachment.default_options[:read_timeout] = 60
+
 if ENV['S3_ENABLED'] == 'true'
   Aws.eager_autoload!(services: %w(S3))