fano-oss-js-sdk
v7.1.8
Published
A fork of minio-js for Fano OSS special needs
Downloads
334
Readme
Fano OSS JavaScript SDK
This is a fork of Minio-js for adding custom feature targeted for Fano OSS.
Difference
- Add
externalHost
andcontextualPath
toClientOptions
getPresignedUrl
andpresignedGetObject
are changed with the newisExternal
parameter (it should be set beforeexpires
)
Sample:
var client = new minio.Client({
endPoint: "127.0.0.1",
externalHost: "sample.fano.ai",
useExternalSSL: true,
port: 9000,
useSSL: false,
accessKey: "accesskey",
secretKey: "secretkey",
contextualPath: true
});
a = await client.presignedGetObject("example", "test", isExternal=true)
console.log(`external: ${a}`)
b = await client.presignedGetObject("example", "test")
console.log(`internal: ${b}`)