4 Commits

Author SHA1 Message Date
52bad357fe 1.0.4 2021-12-18 02:17:42 +01:00
3ffc38dac5 fix(core): update 2021-12-18 02:17:42 +01:00
f35dd1e050 1.0.3 2021-12-18 01:48:03 +01:00
66eba9eef7 fix(core): update 2021-12-18 01:48:03 +01:00
3 changed files with 14 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smarts3",
"version": "1.0.2",
"version": "1.0.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smarts3",
"version": "1.0.2",
"version": "1.0.4",
"license": "MIT",
"dependencies": {
"@pushrocks/smartfile": "^9.0.3",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smarts3",
"version": "1.0.2",
"version": "1.0.4",
"private": false,
"description": "create an s3 endpoint that maps to a local directory",
"main": "dist_ts/index.js",

View File

@ -8,10 +8,20 @@ export interface ISmarts3ContructorOptions {
export class Smarts3 {
public options: ISmarts3ContructorOptions;
public dataForClient = {
s3AccessKey: 'S3RVER',
s3AccessSecret: 'S3RVER',
port: 3000,
useSsl: false
}
public s3Instance: plugins.s3rver;
constructor(optionsArg: ISmarts3ContructorOptions) {
this.options = optionsArg;
this.options = {
...this.options,
...optionsArg
}
}
public async start() {
@ -24,8 +34,7 @@ export class Smarts3 {
port: this.options.port || 3000,
address: '0.0.0.0',
silent: false,
directory: paths.bucketsDir,
allowMismatchedSignatures: true,
directory: paths.bucketsDir
})
await this.s3Instance.run();
console.log('s3 server is running');