X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c5fc9f0e7e93088c599ae0d8540ee0117f277d6d..d99374434e43c2434878f0ce79bca0ebeafcef57:/config/initializers/active_storage.rb diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb index cf53f7918..bc9091080 100644 --- a/config/initializers/active_storage.rb +++ b/config/initializers/active_storage.rb @@ -1,4 +1,5 @@ Rails.application.config.active_storage.queue = :storage +Rails.application.config.active_storage.variable_content_types << "image/bmp" Rails.configuration.after_initialize do require "active_storage/service/s3_service" @@ -30,4 +31,6 @@ Rails.configuration.after_initialize do ActiveSupport::Reloader.to_complete do ActiveStorage::Variant.prepend(OpenStreetMap::ActiveStorage::Variant) end + + ActiveStorage::Service.url_expires_in = 1.week end