ActiveStorage url should expire after an hour
This commit is contained in:
parent
b5c663e01c
commit
cccb04d725
3 changed files with 17 additions and 2 deletions
|
@ -6,7 +6,10 @@ ActiveStorage::Service.url_expires_in = 1.hour
|
|||
# Rails 6 adds support for `.on_load(:active_storage_attachment)`, which is
|
||||
# cleaner (as it allows to enqueue the virus scan on attachment creation, rather
|
||||
# than on blob creation).
|
||||
ActiveSupport.on_load(:active_storage_blob) { include BlobVirusScanner }
|
||||
ActiveSupport.on_load(:active_storage_blob) do
|
||||
include BlobSignedIdConcern
|
||||
include BlobVirusScannerConcern
|
||||
end
|
||||
|
||||
# When an OpenStack service is initialized it makes a request to fetch
|
||||
# `publicURL` to use for all operations. We intercept the method that reads
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue