Add shadows to enable S3 backups to Digital Ocean

With these changes, backups to Digital Ocean spaces can be configured with the following variables:

  DISCOURSE_S3_ACCESS_KEY_ID: 'XXX'
  DISCOURSE_S3_SECRET_ACCESS_KEY: 'YYY'
  DISCOURSE_S3_UPLOAD_BUCKET: 'backups-bucket'
  DISCOURSE_S3_ENDPOINT: 'https://nyc3.digitaloceanspaces.com'
  DISCOURSE_ENABLE_S3_BACKUPS: true
This commit is contained in:
Jay Pfaffman 2018-08-29 12:33:05 -07:00 committed by GitHub
parent afec673c2b
commit 7b601ff2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -933,10 +933,14 @@ files:
default: false
client: true
s3_use_iam_profile: false
s3_access_key_id: ''
s3_access_key_id:
default: ''
secret: true
shadowed_by_global: true
s3_secret_access_key:
default: ''
secret: true
shadowed_by_global: true
s3_region:
default: 'us-east-1'
enum: 'S3RegionSiteSetting'
@ -946,6 +950,7 @@ files:
s3_endpoint:
default: 'https://s3.amazonaws.com'
regex: '^https?:\/\/.+[^\/]$'
shadowed_by_global: true
s3_cdn_url:
default: ''
regex: '^https?:\/\/.+[^\/]$'