Skip to content

Commit

Permalink
S3-compatible object storage API (bigbluebutton#2720)
Browse files Browse the repository at this point in the history
* s3 active_storage

* updated readme
  • Loading branch information
Nemental authored Jun 18, 2021
1 parent cb3e597 commit e54208f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
# Store uploaded files on the local file system (see config/storage.yml for options)
config.active_storage.service = if ENV["AWS_ACCESS_KEY_ID"].present?
:amazon
elsif ENV["S3_ACCESS_KEY_ID"].present?
:s3
elsif ENV["GCS_PRIVATE_KEY_ID"].present?
:google
else
Expand Down
7 changes: 7 additions & 0 deletions config/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ amazon:
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
region: <%= ENV['AWS_REGION'] %>
bucket: <%= ENV['AWS_BUCKET'] %>
s3:
service: S3
endpoint: <%= ENV['S3_ENDPOINT'] %>
access_key_id: <%= ENV['S3_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['S3_SECRET_ACCESS_KEY'] %>
region: <%= ENV['S3_REGION'] %>
bucket: <%= ENV['S3_BUCKET'] %>

# Remember not to checkin your GCS keyfile to a repository
google:
Expand Down
7 changes: 7 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ DEFAULT_REGISTRATION=open
# AWS_REGION=
# AWS_BUCKET=
#
# For S3-compatible API:
# S3_ENDPOINT=
# S3_ACCESS_KEY_ID=
# S3_SECRET_ACCESS_KEY=
# S3_REGION=
# S3_BUCKET=
#
# For GCS Storage:
# GCS_PROJECT_ID=
# GCS_PRIVATE_KEY_ID=
Expand Down

0 comments on commit e54208f

Please sign in to comment.