diff options
author | George Claghorn <george@basecamp.com> | 2018-06-21 11:06:32 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-06-21 11:06:32 -0400 |
commit | b21f50d8ae36d9b50b673579e17bccbe55363b34 (patch) | |
tree | a7fb19013b31f654d198196ad2566e74e103eba1 /guides | |
parent | 9ee74265991e0e52e549e08c25e968195a4a880c (diff) | |
download | rails-b21f50d8ae36d9b50b673579e17bccbe55363b34.tar.gz rails-b21f50d8ae36d9b50b673579e17bccbe55363b34.tar.bz2 rails-b21f50d8ae36d9b50b673579e17bccbe55363b34.zip |
Permit configuring the default service URL expiry
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 7 |
1 files changed, 7 insertions, 0 deletions
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`. |