Set ActiveStorage::Service.url_expires_in
directly, e.g. in an initializer:
# config/initializers/active_storage.rb
ActiveStorage::Service.url_expires_in = 1.hour
Rails 6 will add config.active_storage.service_urls_expire_in
:
# config/initializers/active_storage.rb
Rails.application.config.active_storage.service_urls_expire_in = 1.hour
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…