fix(core): update

This commit is contained in:
Philipp Kunz 2021-12-20 18:25:55 +01:00
parent b5f53b1f64
commit 0a150a8a09

View File

@ -16,12 +16,6 @@ export class Smarts3 {
// INSTANCE // INSTANCE
public options: ISmarts3ContructorOptions; public options: ISmarts3ContructorOptions;
public dataForClient = {
s3AccessKey: 'S3RVER',
s3AccessSecret: 'S3RVER',
port: 3000,
useSsl: false
}
public s3Instance: plugins.s3rver; public s3Instance: plugins.s3rver;
constructor(optionsArg: ISmarts3ContructorOptions) { constructor(optionsArg: ISmarts3ContructorOptions) {
@ -50,11 +44,11 @@ export class Smarts3 {
public async getS3Descriptor(): Promise<plugins.smartbucket.ISmartBucketConfig> { public async getS3Descriptor(): Promise<plugins.smartbucket.ISmartBucketConfig> {
return { return {
accessKey: this.dataForClient.s3AccessKey, accessKey: 'S3RVER',
accessSecret: this.dataForClient.s3AccessSecret, accessSecret: 'S3RVER',
endpoint: 'localhost', endpoint: 'localhost',
port: this.dataForClient.port, port: this.options.port,
useSsl: this.dataForClient.useSsl, useSsl: false,
} }
} }