Skip to content

Commit 1c23cfa

Browse files
committedJun 23, 2024
docs: S3 support description
1 parent ca3f2ed commit 1c23cfa

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
 

‎README.md

+11
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ This is also useful with [Typora](https://support.typora.io/Upload-Image/#image-
2424
### Supported Upload Extensions
2525

2626
+ Github
27+
+ S3 Compatible Storages
28+
<!-- (AWS, MinIO, Cloudflare R2, etc.) -->
29+
+ AWS S3
30+
+ MinIO
31+
+ Cloudflare R2
32+
+ Ceph
33+
+ Backblaze
34+
+ Flexify.IO
35+
+ IBM Cloud Object Storage
36+
+ DigitalOcean Spaces
37+
+ Wasabi
2738
+ Gitee
2839
+ Tencent QcloudCOS
2940
+ Qiniu Kodo

‎config.sample.toml

+9
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,12 @@ upload_preset = "preset_name"
9898
[uploaders.easyimage]
9999
request_url = "https://img.545141.com/api/index.php"
100100
token = "1c17b11693cb5ec63859b0ccccccccccc"
101+
102+
# S3 Uploader
103+
[uploaders.s3]
104+
region = "us-west-2"
105+
bucket_name = "my-bucket"
106+
access_key = "your-access-key"
107+
secret_key = "your-secret-key"
108+
endpoint = "https://s3.us-west-2.amazonaws.com"
109+
url_format = "{endpoint}/{bucket}/{path}"

‎config.sample.zh-CN.toml

+8
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,11 @@ token = "1c17b11693cb5ec63859b0ccccccccccc"
104104
[uploaders.lskypro2]
105105
host = "my_images_host"
106106
token = "images_host_token"
107+
108+
[uploaders.s3]
109+
region = "us-west-2"
110+
bucket_name = "my-bucket"
111+
access_key = "your-access-key"
112+
secret_key = "your-secret-key"
113+
endpoint = "https://s3.us-west-2.amazonaws.com"
114+
url_format = "{endpoint}/{bucket}/{path}"

0 commit comments

Comments
 (0)
Please sign in to comment.