andrewrk / andrewrk/node-s3-cli

Cannot use an S3 compatible Server like Ceph Radosgw

Đang mở
#37 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.