This repository was archived by the owner on Feb 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 301
Custom endpointΒ #233
Copy link
Copy link
Open
Description
With Backblaze releasing an S3-compatible API, I've found the need to specify a custom endpoint on some of my "S3" connections. It looks like nothing in particular is exposed, but was able to get it to work with this code, sharing in case others find this useful:
const s3 = require('@auth0/s3');
let client = s3.createClient({
s3Options: {
'accessKeyId': '...',
'secretAccessKey': '...',
'region': 'us-west-001',
'endpoint': 's3.us-west-001.backblazeb2.com',
},
});Would be nice to have a little documentation in the README on what can go into s3Options, I tried following the link, and it was pretty indecipherable, had me doing a bunch of new s3.AWS.Endpoint(endpoint) stuff that, though worked, apparently was not necessary!
angsanley and evoactivity
Metadata
Metadata
Assignees
Labels
No labels