summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorYukai Huang2016-11-17 18:13:57 +0800
committerYukai Huang2016-11-17 18:27:53 +0800
commitaaf034bfbc7b0b4ac6153b8fefdc04d10a9f0c1f (patch)
tree8993107e972ce1227960a21c6d1ae6887ce80d37 /docs
parent46a4fe10abdec2cfb102336c8f6971eb7202b08b (diff)
Update README
Diffstat (limited to 'docs')
-rw-r--r--docs/guides/s3-image-upload.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/guides/s3-image-upload.md b/docs/guides/s3-image-upload.md
index c92e91f8..3d6259b9 100644
--- a/docs/guides/s3-image-upload.md
+++ b/docs/guides/s3-image-upload.md
@@ -57,6 +57,25 @@
}
```
+8. Edit `config.json` and set following keys:
+
+ ```javascript
+ {
+ "production": {
+ ...
+ "imageUploadType": "s3",
+ "s3": {
+ "accessKeyId": "YOUR_S3_ACCESS_KEY_ID",
+ "secretAccessKey": "YOUR_S3_ACCESS_KEY",
+ "region": "YOUR_S3_REGION", // example: ap-northeast-1
+ "bucket": "YOUR_S3_BUCKET_NAME"
+ }
+ }
+ }
+ ```
+
+9. In additional to edit `config.json` directly, you could also try [environment variable](https://github.com/hackmdio/hackmd#environment-variables-will-overwrite-other-server-configs).
+
## Related Tools
* [AWS Policy Generator](http://awspolicygen.s3.amazonaws.com/policygen.html)