adminjs-upload icon indicating copy to clipboard operation
adminjs-upload copied to clipboard

Suggestion: ability to change amazon url

Open Dramex opened this issue 4 years ago • 2 comments

Hi, i'm using another S3 services which is not s3.amazonaws.com so an ability for changing that domain is appreciated

Dramex avatar Jan 16 '21 18:01 Dramex

Is there any plan to roll out an update to AWSOptions to allow for an endpoint change?

DMadrid avatar Nov 11 '21 15:11 DMadrid

Actually you can pass endpoint key to AWSOptions.

const AWScredentials = {
    endpoint: process.env.SPACE_ENDPOINT,
    region: "us-east-1",
    bucket: process.env.BUCKET,
    forcePathStyle: true, // Configures to use subdomain/virtual calling format.
    credentials: {
        accessKeyId: process.env.ACCESS_KEY_ID,
        secretAccessKey: process.env.SPACES_SECRET,
    }
};

hossamhamzahm avatar Mar 09 '25 20:03 hossamhamzahm