Skip to content

Commit

Permalink
Fix AWS S3 expires_in value of 1296000 exceeds one-week maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Mar 25, 2019
1 parent 5676103 commit 1a497c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bluedoc/pipeline/public_attachments_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def find_blob_url(upload_path)
return nil if blob_key.blank?
blob = ActiveStorage::Blob.find_by(key: blob_key)
return nil if blob.blank?
blob.service_url(expires_in: 15.days)
blob.service_url(expires_in: 5.days)
end
end
end
Expand Down

0 comments on commit 1a497c2

Please sign in to comment.