Skip to content

Commit 7792495

Browse files
committed
Minio needs path style endpoints to work like S3
1 parent 2740506 commit 7792495

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/AwsS3Filesystem.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class AwsS3Filesystem extends Filesystem
4646
* @var string|null
4747
*/
4848
public $prefix;
49+
/**
50+
* @var bool
51+
*/
52+
public $pathStyleEndpoint = false;
4953
/**
5054
* @var array
5155
*/
@@ -87,6 +91,10 @@ protected function prepareAdapter()
8791
]
8892
];
8993

94+
if ($this->pathStyleEndpoint === true) {
95+
$config['use_path_style_endpoint'] = true;
96+
}
97+
9098
if ($this->region !== null) {
9199
$config['region'] = $this->region;
92100
}

0 commit comments

Comments
 (0)