Increase expiry for Active Storage URLs
This commit is contained in:
parent
e3f37bb30c
commit
f597780822
1 changed files with 2 additions and 0 deletions
|
@ -31,4 +31,6 @@ Rails.configuration.after_initialize do
|
||||||
ActiveSupport::Reloader.to_complete do
|
ActiveSupport::Reloader.to_complete do
|
||||||
ActiveStorage::Variant.prepend(OpenStreetMap::ActiveStorage::Variant)
|
ActiveStorage::Variant.prepend(OpenStreetMap::ActiveStorage::Variant)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ActiveStorage::Service.url_expires_in = 1.week
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue