Add optional S3 config/backend for ActiveStorage
This commit is contained in:
@@ -5,3 +5,13 @@ local:
|
||||
test:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("tmp/storage") %>
|
||||
|
||||
<% if ENV["S3_ENABLED"] %>
|
||||
s3:
|
||||
service: S3
|
||||
endpoint: ENV["S3_ENDPOINT"]
|
||||
region: ENV["S3_REGION"]
|
||||
bucket: ENV["S3_BUCKET"]
|
||||
access_key_id: ENV["S3_ACCESS_KEY"]
|
||||
secret_access_key: ENV["S3_SECRET_KEY"]
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user