Answer the question
In order to leave comments, you need to log in
How to make minio and yii2 friends?
using https://github.com/yii2tech/file-storage
but config doesn't work
'fileStorage' => [
'class' => \common\components\storage\S3Storage::class,
'amazonS3Config' => [
'endpoints' => [
'*/*' => [
'endpoint' => '',
],
'us-east-1/*' => [
'endpoint' => '',
],
],
'regions' => [
'us-east-1' => [
'http' => true,
'https' => true,
'hostname' => '',
],
],
'key' => 'minio',
'secret' => 'minio-s3',
'base_url' => 'http://minio-office.asdasdasd-asdasd.com/minio/',
'use_path_style_endpoint' => true,
'region' => 'us-east-1',
'version' => 'latest',
'credentials' => [
'key' => 'minio',
'secret' => 'minio-secret',
],
],
'buckets' => [
'temp-files' => [
'fileSubDirTemplate' => '{^name}/{^^name}',
],
'image-files' => [
'fileSubDirTemplate' => '{ext}/{^name}/{^^name}',
],
'static-files' => [
'fileSubDirTemplate' => '{ext}/{^name}/{^^name}',
],
],
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question