...
 
Commits (2)
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
}, },
"http": { "http": {
"host": "0.0.0.0", "host": "0.0.0.0",
"port": 9191 "port": 9191,
"requestTimeoutSeconds": 300
}, },
"assets": { "assets": {
"packagesBucket": "packages", "packagesBucket": "packages",
......
{ {
"name": "packager-api", "name": "packager-api",
"version": "1.0.0", "version": "1.1.0",
"description": "Packages scores as static standalone modules", "description": "Packages scores as static standalone modules",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {
......
...@@ -33,6 +33,8 @@ class Packager extends Service { ...@@ -33,6 +33,8 @@ class Packager extends Service {
} }
async postHandler (req, res) { async postHandler (req, res) {
req.setTimeout(config.http.requestTimeoutSeconds * 1000)
const rootUuid = parseURI(req.body.id).uuid const rootUuid = parseURI(req.body.id).uuid
const requestConfig = { const requestConfig = {
headers: { headers: {
......