Skip to content

Commit

Permalink
feat: aws s3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinywan committed Sep 7, 2024
1 parent 7d77bf3 commit 17dcb0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Adapter/S3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public function getInstance(): ?S3Client
'region' => $this->config['region'],
'use_path_style_endpoint' => $this->config['use_path_style_endpoint'],
'credentials' => [
'key' => $this->config['secretId'],
'secret' => $this->config['secretKey'],
'key' => $this->config['key'],
'secret' => $this->config['secret'],
],
]);
}
Expand Down
4 changes: 2 additions & 2 deletions src/config/plugin/tinywan/storage/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
// aws
's3' => [
'adapter' => \Tinywan\Storage\Adapter\S3Adapter::class,
'accessKey' => 'xxxxxxxxxxxxx',
'secretKey' => 'xxxxxxxxxxxxx',
'key' => 'xxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxx',
'bucket' => 'resty-webman',
'dirname' => 'storage',
'domain' => 'http://webman.oss.tinywan.com',
Expand Down

0 comments on commit 17dcb0a

Please sign in to comment.