andrewrk / andrewrk/node-s3-cli

Cannot use an S3 compatible Server like Ceph Radosgw

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
98
Forks
32
PR merge metrics
No merged PRs in 30d

Description

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();
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.