From f5977808222bacf30ad56dfd7ccf764bcc46aa11 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 16 Jul 2019 08:25:17 +0100 Subject: [PATCH] Increase expiry for Active Storage URLs --- config/initializers/active_storage.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb index a246e62ac..bc9091080 100644 --- a/config/initializers/active_storage.rb +++ b/config/initializers/active_storage.rb @@ -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 -- 2.39.5