Skip to content

emulate s3 storage with minio #726

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

Closed
tomfun opened this issue Oct 25, 2017 · 1 comment
Closed

emulate s3 storage with minio #726

tomfun opened this issue Oct 25, 2017 · 1 comment

Comments

@tomfun
Copy link

tomfun commented Oct 25, 2017

I need to add extra field for s3 initialization for local S3 emulation with minio

var configuration = {
  verbosity: 0,
  baseUrl: 'https://my-components-registry.mydomain.com/',
  port: 3000,
  tempDir: './temp/',
  refreshInterval: 600,
  pollingInterval: 5,
  s3: {
    key: 'your-s3-key',
    secret: 'your-s3-secret',
    bucket: 'your-s3-bucket',
    region: 'your-s3-region',
    path: '//s3.amazonaws.com/your-s3-bucket/',
    componentsDir: 'components'
// extra field
    constructOptions: {
          sslEnabled: false,
          logger: console,
          s3ForcePathStyle: true, // needed with minio?
          signatureVersion: 'v4'
    }
  },
  env: { name: 'production' }
};

This options are from minio configuration example

I propose to a few line there

// ...
module.exports = function(conf) {
// ...
    const getClient = () => new AWS.S3(conf.s3.constructOptions);
// ...
@matteofigus
Copy link
Member

Moved this issue to the storage adapters repo.

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

2 participants