Skip to content

Commit

Permalink
Add timeouts for S3 (#9842)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Jan 18, 2019
1 parent 69f782b commit 4699cf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
},
s3_options: {
signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' },
http_open_timeout: 5,
http_read_timeout: 5,
http_idle_timeout: 5,
}
)

Expand Down

0 comments on commit 4699cf8

Please sign in to comment.