mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
Increased expiration time on storage to prevent broken images as well as implement a fix for R2/S3 conflicts.
This commit is contained in:
parent
44961f3628
commit
e4a374772a
3 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,9 @@ Rails.application.configure do
|
|||
# Store uploaded files on the local file system (see config/storage.yml for options).
|
||||
config.active_storage.service = ENV.fetch("ACTIVE_STORAGE_SERVICE", "local").to_sym
|
||||
|
||||
# Set Active Storage URL expiration time to 7 days
|
||||
config.active_storage.urls_expire_in = 7.days
|
||||
|
||||
# Don't care if the mailer can't send.
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue