andrewrk / andrewrk/node-s3-cli
Cannot use an S3 compatible Server like Ceph Radosgw
- Ngôn ngữ chính
- JavaScript
- Star
- 98
- Fork
- 32
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Consider use host_base parameter of s3cfg file when initalize s3.Client.
I hardcode this to suit my case :
```node
function setup(secretAccessKey, accessKeyId) {
var maxSockets = parseInt(args['max-sockets'], 10);
http.globalAgent.maxSockets = maxSockets;
https.globalAgent.maxSockets = maxSockets;
client = s3.createClient({
s3Options: {
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey,
sslEnabled: !args.insecure,
endpoint: 'cephgw.my.com',
region: args.region,
},
});
var cmd = args._.shift();
var fn = fns[cmd];
if (!fn) fn = cmdHelp;
fn();
}
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.