有没有办法在 S3 getSignedUrl 中使用 http link 而不是 https?

Is there a way to use http link instead of https in S3 getSignedUrl?

我目前正在使用 aws-sdk 通过 node.js 从 S3 下载文件。

var s3 = new AWS.S3();

var params = {
    Bucket: bucket,
    Key: directory + file,
    Expires: 300
};

var url = s3.getSignedUrl('getObject', params);
res.redirect(url);

它给了我一个 link 和 https。

https://mybucket.s3.amazonaws.com/.......qNBK%2BzP48%3D

有没有办法通过 http 而不是 https 获取 link?谢谢

要禁用 SSL 下载,请在 AWS config 中设置 false

AWS.config.update({
    accessKeyId: key,
    secretAccessKey: secret,
    sslEnabled: false
});