Add read timeout to paperclip when it's downloading remote images
parent
0dac73b5cc
commit
438446b397
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue