frostealth / yii2-aws-s3

An Amazon S3 component for Yii2
MIT License
91 stars 56 forks source link

Add the option to set the S3Client Endpoint property #37

Open nurielmeni opened 5 years ago

nurielmeni commented 5 years ago

In order to make other services that uses the S3 api to be contacted via this extension. for example: 's3' => [ 'class' => 'frostealth\yii2\aws\s3\Service', 'credentials' => 'key' => 'My-Key', 'secret' => 'My-Secret', ], 'endpoint' => "https://myendpoint.com", 'region' => 'endpoitregion', 'defaultBucket' => 'defaultbucket', 'defaultAcl' => 'public-read', ],

MoVoDesign commented 5 years ago

That would be great to use docker aws-localstack as well.

dupotey commented 3 years ago

It would be great. This may allow the use of the extension with minio object storage service (https://min.io).

DBX12 commented 3 years ago

I added a fix to the bp-sys fork. I would open a PR to this repo too, but as my fork is from bp-sys, I would also introduce changes from there.

If there is interest in this fix by the maintainers, I can fork this project as well and PR the fix.

SerikK commented 3 years ago

You can extends class Service and add on init method add $this->clientConfig['endpoint'] = 'https://';