commit: 7ddec6e7c3a8bdfcc69d28a723caca61cdb2a17c
parent: 989c3f40022bc65d69915be597acda3c4d58de60
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 7 Jan 2017 15:43:56 +0100
Add read timeout to paperclip when it's downloading remote images
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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))