wasabi配置

相关参数获取

Wasabi主要需要endpointregionbucketaccesskeysecretkey5个参数。

endpoint参数列表

Wasabi US East 1 (N. Virginia): s3.wasabisys.com 或 s3.us-east-1.wasabisys.com
Wasabi US East 2 (N. Virginia): s3.us-east-2.wasabisys.com
Wasabi US Central 1 (Texas): s3.us-central-1.wasabisys.com
Wasabi US West 1 (Oregon): s3.us-west-1.wasabisys.com
Wasabi EU Central 1 (Amsterdam): s3.eu-central-1.wasabisys.com
Wasabi EU West 1 (London - coming soon): s3.eu-west-1.wasabisys.com
Wasabi AP Northeast 1 (Tokyo): s3.ap-northeast-1.wasabisys.com
Wasabi AP Northeast 2 (Osaka): s3.ap-northeast-2.wasabisys.com

region参数列表

该参数直接看Bucket List的桶列表描述的Rregion项。

bucket参数获取

该参数直接看Bucket List的桶列表处创建的名称。

accesskey和secretkey参数获取

accesskeysecretkey参数可以访问后台左侧-Access Keys获取,不知道在哪的可以直接点击→传送门

配置文件参考

module.exports = {
    endPoint: '',
    accessKey: '',
    secretKey: '',
    region: '',
    bucket: '',
    ignored: ['**/*.mp4','**/*.jpg','**/*.gif','**/*.txt','**/*.css'],
    type: 'wasabi',
    rootpath: '/home/express-ffmpeg',
    path: '/home/express-ffmpeg/public/videos',
    remove: true,
    removeignored: ['.m3u8', '.jpg', '.gif', '.css', '.txt', '.key', '.info', '.png']
}

将获取到的endpointregionbucketaccesskeysecretkey5个参数填入进去即可,其它参数可自行修改。