MikaAK / s3-plugin-webpack

Uploads files to s3 after complete
MIT License
486 stars 125 forks source link

endpoint-url option #126

Closed viartemev closed 4 years ago

viartemev commented 5 years ago

Complete the following or your issue will be deleted (delete me after)

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

Thank you for adhering to this process! This ensures that I can pay attention to issues that are relevant and answer questions faster.

Issue Details

s3-plugin-webpack version: 1.3.2 OS: MacOS

AWS client has --endpoint-url option which is useful for using with others S3 compatible cloud providers. Could you add this option? The AWS Endpoint documentation: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Endpoint.html

MikaAK commented 5 years ago

PR's are welcome but this isn't really a priority since this is intended for s3

pscheit commented 3 years ago

for e.g. minio go like this:

                s3Options: {
                  accessKeyId: process.env.AWS_ACCESS_KEY_ID,
                  secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
                  endpoint: 'https://my-minio-server',
                  s3ForcePathStyle: true,
                  signatureVersion: 'v4',
                  logger: console
                },