andrewrk / andrewrk/node-s3-cli
Cannot use an S3 compatible Server like Ceph Radosgw
- Lingua principale
- JavaScript
- Stelle
- 98
- Fork
- 32
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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();
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.