-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.default.js
42 lines (40 loc) · 1.02 KB
/
config.default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use strict';
const STS = require('qcloud-cos-sts');
/**
* **COS STS Config**
*
* ERROR 403: Access Denied, please verify policy
*
* [Example]{@link https://cloud.tencent.com/document/product/436/9067}
* [Access-Control-Allow-Origin]{@link https://cloud.tencent.com/document/product/436/13318}
*
* @see https://github.com/tencentyun/qcloud-cos-sts-sdk
*/
exports.cosSts = {
default: {
STS,
},
// client: {
// secretId: 'COS_SECRETID',
// secretKey: 'COS_SECRETKEY',
// bucket: 'BUCKET-APPID',
// region: 'REGION',
// proxy: '',
// durationSeconds: 1800,
// allowPrefix: 'PREFIX', // WARNING: overwrite file same key
// policy: {
// version: '2.0',
// statement: [{
// action: [
// 'name/cos:PutObject',
// 'name/cos:PostObject',
// ],
// effect: 'allow',
// principal: { qcs: [ '*' ] },
// resource: [
// 'qcs::cos:REGION:uid/APPID:prefix//APPID/BUCKET/PREFIX',
// ],
// }],
// },
// },
};