Skip to content
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

Can bucket_endpoint be set in the a config? #26

Open
green17 opened this issue Aug 5, 2022 · 0 comments
Open

Can bucket_endpoint be set in the a config? #26

green17 opened this issue Aug 5, 2022 · 0 comments

Comments

@green17
Copy link

green17 commented Aug 5, 2022

Not a digital ocean problem but we were trying to test with MINIO S3 (https://min.io/) on our setup it seems to not like adding the bucket name as a subdomain, from looking at other issues (#16) I saw that you can add the below to the plugin and this fixes the problem for us but can this be set via a config?

$config['bucket_endpoint'] = true;

In Volume.php:

protected function createAdapter()
{
    $config = $this->_getConfigArray();
    $config['bucket_endpoint'] = true;
    $client = static::client($config);
    return new AwsS3Adapter($client, $this->getBucket(), $this->getSubfolder());
}
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

1 participant