From b21f50d8ae36d9b50b673579e17bccbe55363b34 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Thu, 21 Jun 2018 11:06:32 -0400 Subject: Permit configuring the default service URL expiry --- guides/source/configuring.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'guides/source') diff --git a/guides/source/configuring.md b/guides/source/configuring.md index e89909b614..43c2ac6827 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -822,6 +822,13 @@ text/javascript image/svg+xml application/postscript application/x-shockwave-fla config.active_storage.logger = ActiveSupport::Logger.new(STDOUT) ``` +* `config.active_storage.service_urls_expire_in` determines the default expiry of URLs generated by: + * `ActiveStorage::Blob#service_url` + * `ActiveStorage::Blob#service_url_for_direct_upload` + * `ActiveStorage::Variant#service_url` + + The default is 5 minutes. + ### Configuring a Database Just about every Rails application will interact with a database. You can connect to the database by setting an environment variable `ENV['DATABASE_URL']` or by using a configuration file called `config/database.yml`. -- cgit v1.2.3