This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Add read timeout to paperclip when it's downloading remote images
closed-social-glitch-2
Eugen Rochko
7 years ago
parent
989c3f4002
commit
7ddec6e7c3
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
config/initializers/paperclip.rb
+ 2
- 0
config/initializers/paperclip.rb
View File
@ -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
)
)
Write
Preview
Loading…
Cancel
Save