Add configurable donate, CLI and DMCA and source links in footer
This commit is contained in:
parent
7f3da34318
commit
6960cc75fa
11 changed files with 98 additions and 9 deletions
|
@ -6,9 +6,9 @@ class S3Storage {
|
|||
this.log = log;
|
||||
const cfg = {};
|
||||
if (config.s3_endpoint != '') {
|
||||
cfg['endpoint'] = config.s3_endpoint;
|
||||
cfg['endpoint'] = config.s3_endpoint;
|
||||
}
|
||||
cfg['s3ForcePathStyle'] = config.s3_use_path_style_endpoint
|
||||
cfg['s3ForcePathStyle'] = config.s3_use_path_style_endpoint;
|
||||
AWS.config.update(cfg);
|
||||
this.s3 = new AWS.S3();
|
||||
}
|
||||
|
@ -21,7 +21,9 @@ class S3Storage {
|
|||
}
|
||||
|
||||
getStream(id) {
|
||||
return this.s3.getObject({ Bucket: this.bucket, Key: id }).createReadStream();
|
||||
return this.s3
|
||||
.getObject({ Bucket: this.bucket, Key: id })
|
||||
.createReadStream();
|
||||
}
|
||||
|
||||
set(id, file) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue