]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/active_storage.rb
Merge remote-tracking branch 'upstream/pull/2362'
[rails.git] / config / initializers / active_storage.rb
index 3d2c91265698304e7ac1bdf823a411c1c74d8d9d..bc909108058cf927dc623dab7b515aead9aedd8d 100644 (file)
@@ -1,3 +1,6 @@
+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"
   require_dependency "active_storage/variant"
@@ -28,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