yii2-aws-s3
yii2-aws-s3 copied to clipboard
Add the option to set the S3Client Endpoint property
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', ],
That would be great to use docker aws-localstack as well.
It would be great. This may allow the use of the extension with minio object storage service (https://min.io).
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.
You can extends class Service and add on init method add $this->clientConfig['endpoint'] = 'https://';