Enhancement: Use S3 for active storage (#398)

This commit is contained in:
Sojan Jose
2019-12-29 11:13:28 +05:30
committed by Pranav Raj S
parent e2aeeeca43
commit bacc0b2f18
3 changed files with 8 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ Rails.application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
config.active_storage.service = ENV.fetch('ACTIVE_STORAGE_SERVICE', 'local').to_sym
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true