yii2-aws-s3 icon indicating copy to clipboard operation
yii2-aws-s3 copied to clipboard

Add the option to set the S3Client Endpoint property

Open nurielmeni opened this issue 6 years ago • 4 comments

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', ],

nurielmeni avatar Oct 12 '18 13:10 nurielmeni

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

MoVoDesign avatar Jun 09 '19 01:06 MoVoDesign

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

dupotey avatar May 01 '21 17:05 dupotey

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.

DBX12 avatar May 17 '21 08:05 DBX12

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

SerikK avatar Aug 12 '21 09:08 SerikK