Skip to content

Commit

Permalink
docs: S3 support description
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Jun 23, 2024
1 parent ca3f2ed commit 1c23cfa
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ This is also useful with [Typora](https://support.typora.io/Upload-Image/#image-
### Supported Upload Extensions

+ Github
+ S3 Compatible Storages
<!-- (AWS, MinIO, Cloudflare R2, etc.) -->
+ AWS S3
+ MinIO
+ Cloudflare R2
+ Ceph
+ Backblaze
+ Flexify.IO
+ IBM Cloud Object Storage
+ DigitalOcean Spaces
+ Wasabi
+ Gitee
+ Tencent QcloudCOS
+ Qiniu Kodo
Expand Down
9 changes: 9 additions & 0 deletions config.sample.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,12 @@ upload_preset = "preset_name"
[uploaders.easyimage]
request_url = "https://img.545141.com/api/index.php"
token = "1c17b11693cb5ec63859b0ccccccccccc"

# S3 Uploader
[uploaders.s3]
region = "us-west-2"
bucket_name = "my-bucket"
access_key = "your-access-key"
secret_key = "your-secret-key"
endpoint = "https://s3.us-west-2.amazonaws.com"
url_format = "{endpoint}/{bucket}/{path}"
8 changes: 8 additions & 0 deletions config.sample.zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,11 @@ token = "1c17b11693cb5ec63859b0ccccccccccc"
[uploaders.lskypro2]
host = "my_images_host"
token = "images_host_token"

[uploaders.s3]
region = "us-west-2"
bucket_name = "my-bucket"
access_key = "your-access-key"
secret_key = "your-secret-key"
endpoint = "https://s3.us-west-2.amazonaws.com"
url_format = "{endpoint}/{bucket}/{path}"

0 comments on commit 1c23cfa

Please sign in to comment.