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 a246e62..bc90910 100644 (file)
@@ -31,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