Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9592ab863a | |||
b60ece389c |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartbucket",
|
"name": "@pushrocks/smartbucket",
|
||||||
"version": "1.0.42",
|
"version": "1.0.43",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartbucket",
|
"name": "@pushrocks/smartbucket",
|
||||||
"version": "1.0.42",
|
"version": "1.0.43",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/qenv": "^4.0.10",
|
"@pushrocks/qenv": "^4.0.10",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartbucket",
|
"name": "@pushrocks/smartbucket",
|
||||||
"version": "1.0.42",
|
"version": "1.0.43",
|
||||||
"description": "simple cloud independent object storage",
|
"description": "simple cloud independent object storage",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -4,6 +4,7 @@ import { Bucket } from './smartbucket.classes.bucket';
|
|||||||
export interface ISmartBucketConfig {
|
export interface ISmartBucketConfig {
|
||||||
endpoint: string;
|
endpoint: string;
|
||||||
port?: number;
|
port?: number;
|
||||||
|
useSsl?: boolean;
|
||||||
accessKey: string;
|
accessKey: string;
|
||||||
accessSecret: string;
|
accessSecret: string;
|
||||||
}
|
}
|
||||||
@ -21,7 +22,7 @@ export class SmartBucket {
|
|||||||
this.minioClient = new plugins.minio.Client({
|
this.minioClient = new plugins.minio.Client({
|
||||||
endPoint: this.config.endpoint,
|
endPoint: this.config.endpoint,
|
||||||
port: configArg.port || 443,
|
port: configArg.port || 443,
|
||||||
useSSL: true,
|
useSSL: configArg.useSsl || true,
|
||||||
accessKey: this.config.accessKey,
|
accessKey: this.config.accessKey,
|
||||||
secretKey: this.config.accessSecret,
|
secretKey: this.config.accessSecret,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user