make public storage and direct upload optional

This commit is contained in:
Alex Turchyn
2023-07-04 01:58:43 +03:00
parent ff18fef2e3
commit 97b3adf91f
23 changed files with 336 additions and 181 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ Rails.application.configure do
# Do not eager load code on boot.
config.eager_load = false
config.hosts = nil
# Show full error reports.
config.consider_all_requests_local = true
@@ -45,7 +46,8 @@ Rails.application.configure do
end
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
config.active_storage.service = :disk
config.active_storage.resolve_model_to_route = :rails_storage_proxy
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = true