浏览代码

examples: Update DO Spaces readme

Renée Kooi 7 年之前
父节点
当前提交
d2f0600d28
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      examples/digitalocean-spaces/readme.md

+ 5 - 5
examples/digitalocean-spaces/readme.md

@@ -1,6 +1,6 @@
 # Uploading to DigitalOcean Spaces
 
-This example uses Uppy to upload files to a DigitolOcean Space. DigitalOcean Spaces has an identical API to S3, so we can use the [AwsS3](https://uppy.io/docs/aws-s3) plugin. We use a custom signing endpoint (server.js) that uses the official AWS SDK to generate a presigned URL for our DO space.
+This example uses Uppy to upload files to a DigitolOcean Space. DigitalOcean Spaces has an identical API to S3, so we can use the [AwsS3](https://uppy.io/docs/aws-s3) plugin. We use uppy-server with a [custom `endpoint` configuration](./server.js#L32-L33) that points to DigitalOcean.
 
 To try this example, first run:
 
@@ -11,9 +11,9 @@ npm install
 Then configure some environment variables and run it:
 
 ```bash
-DO_REGION=ams3 \
-DO_ACCESS_KEY=your_access_key_id \
-DO_SECRET_KEY=your_secret_access_key \
-DO_SPACE=your_space_name \
+UPPYSERVER_AWS_REGION=ams3 \
+UPPYSERVER_AWS_KEY=your_access_key_id \
+UPPYSERVER_AWS_SECRET=your_secret_access_key \
+UPPYSERVER_AWS_BUCKET=your_space_name \
 npm start
 ```