feat(storage): add S3 storage support
This commit is contained in:
parent
6915671f95
commit
3ab4482ff7
2 changed files with 12 additions and 0 deletions
|
@ -37,6 +37,12 @@ BASIC_AUTH_PASSWORD=""
|
|||
# (See config/storage.yml for the configuration of each service.)
|
||||
ACTIVE_STORAGE_SERVICE="local"
|
||||
|
||||
# Configuration for the S3 storage service (if enabled)
|
||||
S3_ACCESS_KEY_ID=""
|
||||
S3_SECRET_ACCESS_KEY=""
|
||||
S3_REGION=""
|
||||
S3_BUCKET=""
|
||||
|
||||
# Configuration for the OpenStack storage service (if enabled)
|
||||
FOG_OPENSTACK_API_KEY=""
|
||||
FOG_OPENSTACK_USERNAME=""
|
||||
|
|
|
@ -13,3 +13,9 @@ openstack:
|
|||
openstack_username: "<%= ENV['FOG_OPENSTACK_USERNAME'] %>"
|
||||
openstack_region: "<%= ENV['FOG_OPENSTACK_REGION'] %>"
|
||||
openstack_temp_url_key: "<%= ENV['FOG_OPENSTACK_TEMP_URL_KEY'] %>"
|
||||
amazon:
|
||||
service: S3
|
||||
access_key_id: <%= ENV.fetch("S3_ACCESS_KEY_ID", "") %>
|
||||
secret_access_key: <%= ENV.fetch("S3_SECRET_ACCESS_KEY", "") %>
|
||||
region: <%= ENV.fetch("S3_REGION", "") %>
|
||||
bucket: <%= ENV.fetch("S3_BUCKET", "") %>
|
||||
|
|
Loading…
Reference in a new issue