transloadit / uppy-server

[DEPRECATED] 'Uppy Server' was renamed to 'Companion' and lives inside the Uppy repo no
https://github.com/transloadit/uppy/tree/master/packages/%40uppy/companion
MIT License
114 stars 27 forks source link

Configurable endpoint #68

Closed goto-bus-stop closed 6 years ago

goto-bus-stop commented 6 years ago

Per discussion in https://github.com/transloadit/uppy/pull/663.

This extends the current approach with an AWS_ENDPOINT environment variable that you can use to configure the S3 endpoint. The AWS SDK helpfully supports endpoints in this template format so regions can still be specified as a separate variable:

https://{region}.digitaloceanspaces.com

As mentioned in transloadit/uppy#663 we may need something more flexible in the future so you don't have to run a separate server for every bucket or w/e, but this is a low-effort way to support S3 alternatives for now, which I think is worth something.

Tested by running the aws-uppy-server example with only an added endpoint: 'https://{region}.digitaloceanspaces.com' in server.js.

image