1
0
Fork 0
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:
Josh Pigford 2025-01-23 10:11:09 -06:00
parent 44961f3628
commit e4a374772a
3 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -33,6 +33,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
# Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil
# config.action_cable.url = "wss://example.com/cable"

View file

@ -20,6 +20,8 @@ cloudflare:
secret_access_key: <%= ENV['CLOUDFLARE_SECRET_ACCESS_KEY'] %>
region: auto
bucket: <%= ENV['CLOUDFLARE_BUCKET'] %>
request_checksum_calculation: "when_required"
response_checksum_validation: "when_required"
# Removed in #702. Uncomment, add gems, update .env.example to enable.
#google: