Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use an S3 compatible Server like Ceph Radosgw #37

Open
deguich opened this issue Jan 10, 2018 · 0 comments
Open

Cannot use an S3 compatible Server like Ceph Radosgw #37

deguich opened this issue Jan 10, 2018 · 0 comments

Comments

@deguich
Copy link

deguich commented Jan 10, 2018

Consider use host_base parameter of s3cfg file when initalize s3.Client.

I hardcode this to suit my case :

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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant