Add support for S3 backed uploads
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -8,7 +8,7 @@ const upload_config = {
|
||||
/*
|
||||
* The name of the upload backend to use by default.
|
||||
*/
|
||||
default_store: 'flitter',
|
||||
default_store: env('UPLOAD_DEFAULT_STORE', 'flitter'),
|
||||
enabled: true,
|
||||
|
||||
/*
|
||||
@@ -30,6 +30,30 @@ const upload_config = {
|
||||
// path of the application.
|
||||
destination: './uploads',
|
||||
},
|
||||
|
||||
/*
|
||||
* Example of an Amazon AWS S3 (or compatible) uploader.
|
||||
*/
|
||||
s3: {
|
||||
enabled: true,
|
||||
|
||||
// Backed by an S3 bucket.
|
||||
type: 'AWSS3Store',
|
||||
|
||||
// AWS SDK credentials and configuration
|
||||
aws: {
|
||||
region: env('AWS_REGION', 'us-east-1'),
|
||||
key_id: env('AWS_ACCESS_KEY_ID'),
|
||||
key_secret: env('AWS_SECRET_ACCESS_KEY'),
|
||||
endpoint: env('AWS_S3_ENDPOINT'),
|
||||
},
|
||||
|
||||
// The bucket to which the files should be uploaded
|
||||
bucket: env('AWS_UPLOAD_BUCKET', 'flitter.localhost'),
|
||||
|
||||
// The prefix to be used for file uploads
|
||||
prefix: env('AWS_UPLOAD_PREFIX', ''),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user