andrewrk / andrewrk/node-s3-cli
Cannot use an S3 compatible Server like Ceph Radosgw
未關閉
- 主要語言
- JavaScript
- 星號
- 98
- 分支
- 32
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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();
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。