Increase expiry for Active Storage URLs

This commit is contained in:
Tom Hughes 2019-07-16 08:25:17 +01:00
parent e3f37bb30c
commit f597780822

View file

@ -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