Commit Graph

50 Commits

Author SHA1 Message Date
miaodi
459cc1cf94 add oracle cloud configuration guide in README (#20)
增加oracle cloud的配置,实测可以上传。
官方文档地址:https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/s3compatibleapi.htm

`Path Style`和`Virtual Hosted Style`均可以配置,并测试成功。
推荐使用`Virtual Hosted Style`方式:

![image](https://user-images.githubusercontent.com/19516717/216295351-5146f5ab-0cf6-43a1-bc6e-ad261c55f198.png)

entrypoint: compat.objectstorage.{region}.oraclecloud.com
将`{region}`替换为上图中`区域`的值

绑定域名留空

![image](https://user-images.githubusercontent.com/19516717/216307619-b54b5829-8341-469d-86b1-dad7e1e65260.png)
`Access Key`和`Access Secret` 在用户设置里面生成`客户秘钥`

```release-note
None
```
2023-02-02 14:20:10 +00:00
SanqianQVQ
780258ffc1 Update README.md (#18)
Added Cloudflare info and use of bright red  for readability.

    None
2023-01-31 10:58:09 +00:00
longjuan
c9f13d4b5f chore: bump version and correct license (#15)
perf: Use async client and multipart upload to avoid out of memory by @longjuan in https://github.com/halo-sigs/plugin-s3/pull/7
feat: add access style options to support minio binding domain names by @longjuan in https://github.com/halo-sigs/plugin-s3/pull/13
feat: check the file already exists before uploading by @longjuan in https://github.com/halo-sigs/plugin-s3/pull/11
```release-note
None
```
1.3.0
2023-01-31 02:22:09 +00:00
longjuan
72af0fcdac chore: add configuration guide in README (#14)
因为增加了访问风格选项,导致配置比较难理解,因此增加配置指南
```release-note
None
```
2023-01-30 02:04:11 +00:00
longjuan
21b752dd25 feat: check the file already exists before uploading (#11)
Fixes https://github.com/halo-dev/halo/issues/2945
```release-note
Add file check with the same name when uploading
```

我这里使用了ConcurrentHashMap避免**同时**上传两个同名文件导致文件覆盖问题,在本地存储策略中是由操作系统保证的
不知道这样是不是一个好方法

S3AsyncClient中没有`doesObjectExist`类似的方法,官方的文档也让用`headObject`捕获异常的办法来判断文件是否存在,详见https://github.com/aws/aws-sdk-java-v2/blob/master/docs/LaunchChangelog.md 中搜索`doesObjectExist`
2023-01-28 06:40:10 +00:00
longjuan
b5c2c50654 feat: add access style options to support minio binding domain names (#13)
Fixes https://github.com/halo-sigs/plugin-s3/issues/12

![image](https://user-images.githubusercontent.com/28662535/213078807-b4f7c877-0e83-4a0f-a87b-871c7a3c73dc.png)
![image](https://user-images.githubusercontent.com/28662535/213078827-b0cd7e93-04af-4f3e-988b-e03db3beb85a.png)

```release-note
add access style options to support minio binding domain names
```

⚠️在发布新版本前在README里增加兼容访问风格相关说明
![image](https://user-images.githubusercontent.com/28662535/213079553-9781c489-b969-4e8f-849e-01f2168f2569.png)
2023-01-28 03:40:09 +00:00
longjuan
1158ea7ae8 perf: Use async client and multipart upload to avoid out of memory (#7)
Fixes https://github.com/halo-sigs/plugin-s3/issues/6
```release-note
Use async client and multipart upload to avoid out of memory
```
2023-01-09 09:48:39 +00:00
longjuan
11087a9915 fix: EndpointProtocol setting item does not take effect (#10)
Fixes https://github.com/halo-sigs/plugin-s3/issues/9
```release-note
fix endpointProtocol setting item does not take effect
```
1.2.1
2023-01-07 09:56:36 +00:00
longjuan
bf3b11b842 Bump version to 1.2.0 (#3)
```release-note
None
```
1.2.0
2022-12-23 04:00:29 +00:00
Ryan Wang
3724a68b87 chore: rename to plugin-s3 (#1) 2022-12-23 11:30:43 +08:00
Ryan Wang
0f531daf2d Create OWNERS (#2) 2022-12-23 11:05:16 +08:00
longjuan
973bc1b3de Merge pull request #7 from longjuan/dev
upgrade sdk version
2022-12-21 22:46:50 -06:00
longjuan
c2e747ab15 extraction public tool 2022-12-21 16:04:27 +08:00
longjuan
fb06ea7172 upgrade aws-java-sdk to 1.12.360 2022-12-20 17:39:31 +08:00
longjuan
12740bfa70 Merge pull request #6 from longjuan/dev
fix MediaType is always application/octet and delete the unimplemented function of restriction extensions
2022-12-19 07:54:20 -06:00
longjuan
5da0fae2b4 Adjust Formatting 2022-12-19 21:51:42 +08:00
longjuan
79c94a29a9 Upgrade version to 1.1.1 2022-12-19 21:41:08 +08:00
longjuan
e9e9b327fe add endpoint protocol help tips 2022-12-19 21:40:55 +08:00
longjuan
dc49669b71 delete the unimplemented function of restriction extensions 2022-12-19 21:30:52 +08:00
longjuan
c7e4c91932 fix: MediaType is always application/octet stream 2022-12-19 21:26:47 +08:00
longjuan
32e748c3d3 Merge pull request #5 from longjuan/dev-update-README
Update README.md
2022-12-17 18:01:57 +08:00
longjuan
732be2f6ed Update README.md 2022-12-17 18:01:22 +08:00
longjuan
a82b75201a Merge pull request #4 from longjuan/dev
add Endpoint access protocol selection
2022-12-17 11:27:10 +08:00
longjuan
301632bf88 Upgrade version to 1.1.0 2022-12-17 11:18:15 +08:00
longjuan
1b35103c85 add Endpoint access protocol selection 2022-12-17 11:12:20 +08:00
longjuan
69c48810c7 handle the case of domain=null 2022-12-17 00:19:32 +08:00
longjuan
63766d4983 Merge pull request #3 from longjuan/dev-update-workflow
Update workflow.yaml
2022-12-16 14:14:06 +08:00
longjuan
bb4d50c1b4 Update workflow.yaml 2022-12-16 14:13:08 +08:00
longjuan
4182a30662 Merge pull request #2 from longjuan/dev-update-workflow
Update workflow.yaml
2022-12-16 14:09:05 +08:00
longjuan
6847fa2e68 Update workflow.yaml 2022-12-16 14:08:43 +08:00
longjuan
95c58c6081 Merge pull request #1 from longjuan/dev
Complete S3 protocol adaptation
2022-12-16 14:02:16 +08:00
longjuan
27663f757e update README.md 2022-12-16 13:58:52 +08:00
longjuan
1258436608 Change policy display name 2022-12-16 13:43:58 +08:00
longjuan
2808db4876 Complete S3 protocol adaptation 2022-12-16 13:36:18 +08:00
guqing
535643d14e refactor; policy template initialize 2022-12-01 13:57:41 +08:00
guqing
9732cd5f82 refactor: adapt to halo 2.0 2022-12-01 13:48:12 +08:00
Ryan Wang
781a010a8f refactor: plugin author field 2022-11-30 22:41:02 +08:00
Ryan Wang
fccf4b84c2 chore: release 1.0.0-alpha.2 2022-10-26 17:00:38 +08:00
Ryan Wang
73b5f0c1f8 chore: bump dependencies 2022-10-26 14:27:13 +08:00
Ryan Wang
8c9a0bc695 fix: github-release workflow
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-30 23:02:29 +08:00
Ryan Wang
9b6de45168 chore: update github workflow of release
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-30 22:59:16 +08:00
Ryan Wang
eb5d6fa05a refactor: structure of the setting spec (#4) 2022-09-22 16:45:10 +08:00
John Niang
fb9ed250ff Implement AttachmentHandler using AliOSS SDK (#2) 2022-09-05 10:31:47 +08:00
Ryan Wang
f132bf9584 docs: update readme
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-03 16:18:02 +08:00
Ryan Wang
616945015f docs: update readme
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-03 16:17:17 +08:00
Ryan Wang
a7da569b03 chore: update github action
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-03 16:08:11 +08:00
Ryan Wang
fac8733697 feat: update logo and description
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-03 16:06:05 +08:00
Ryan Wang
9f9459767c typo: update workflow artifact name
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-29 22:20:29 +08:00
Ryan Wang
d0ba22fa64 chore: code cleanup
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-29 11:37:32 +08:00
Ryan Wang
02e878c64d Initial commit 2022-08-29 11:22:49 +08:00