]> git.openstreetmap.org Git - rails.git/commitdiff
Increase expiry for Active Storage URLs
authorTom Hughes <tom@compton.nu>
Tue, 16 Jul 2019 07:25:17 +0000 (08:25 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 16 Jul 2019 07:25:17 +0000 (08:25 +0100)
config/initializers/active_storage.rb

index a246e62ac16f6abd61375477a4ba7e201f787f4c..bc909108058cf927dc623dab7b515aead9aedd8d 100644 (file)
@@ -31,4 +31,6 @@ Rails.configuration.after_initialize do
   ActiveSupport::Reloader.to_complete do
     ActiveStorage::Variant.prepend(OpenStreetMap::ActiveStorage::Variant)
   end
   ActiveSupport::Reloader.to_complete do
     ActiveStorage::Variant.prepend(OpenStreetMap::ActiveStorage::Variant)
   end
+
+  ActiveStorage::Service.url_expires_in = 1.week
 end
 end