Skip to content

Commit dfd1da0

Browse files
committed
update readme, add s3 description
1 parent afd6e70 commit dfd1da0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ A command to read the image from system clipborad, optimize the size, upload to
3232
| github | based on github, little limitation if you follow the [terms of service](https://help.github.com/articles/github-terms-of-service/) and [github pages limits](https://help.github.com/articles/what-is-github-pages/#usage-limits); great and stable company | access is slow in China |
3333
| [cloudinary](https://cloudinary.com/pricing) | totally 10G free storage for at most 300K items, 20 GB free monthly net viewing bandwith, fast net access globally | a small and unstable company? (not sure) |
3434
| [sm.ms](https://sm.ms/) | No limitation, fast access in China | no account, and you can not manage your picture, private projects |
35+
| [s3](https://aws.amazon.com/s3/) | Pay only for what you use. There is no minimum fee, fast access in global | need AWS account |
3536

3637
> This extension is made originally for writing my personal [techblog](https://www.njleonzhang.com/), which means the storage and network access cost to the CDN should be small. You should not use this extension to upload pitures with mass access to `github`, which may exceed [github pages limits](https://help.github.com/articles/what-is-github-pages/#usage-limits).
3738
@@ -54,6 +55,10 @@ A command to read the image from system clipborad, optimize the size, upload to
5455
| markdownPasteImage.cloudinaryApiKey | string | "" | api key of cloudinary |
5556
| markdownPasteImage.cloudinarySecret | string | "" | api secret of cloudinary |
5657
| markdownPasteImage.cloudinaryFolder | string | "" | folder of cloudinary you want to put your image in |
58+
| markdownPasteImage.s3Bucket | string | "" | s3 bucket name, like "com.xxx.xxx" |
59+
| markdownPasteImage.s3PreUrl | string | "" | s3 domain name, like "img.xxx.xxx" |
60+
61+
> when you select s3, you must config s3 Credentials in your computer, follow this link step: <https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-started-nodejs.html>
5762
5863
> if cdn is not configured correctly or the editing file is not a markdown file, the picture will be paste to current folder of the editing file.
5964

0 commit comments

Comments
 (0)