Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
region: config.aws.aws_region,
useAccelerateEndpoint: false, // default: false,
expires: 300, // default: 300 (5 minutes)
acl: 'private', // default: public-read
}
},
server: {
host: `localhost:${config.img_storage_port}`,
protocol: 'http',
path: '/database_upload',
},
filePath: '/tmp',
debug: true,
};
app.use('/database_upload', bodyParser.json(), companion.app(options));
companion.socket(httpServer, options);
logger.info(`Storage server is listening on ${config.img_storage_port} port...`);
return httpServer;
}