Commit be5d34a4 authored by Anton's avatar Anton

Add configurable request timeout (default is 300s)

parent b089c604
......@@ -8,7 +8,8 @@
},
"http": {
"host": "0.0.0.0",
"port": 9191
"port": 9191,
"requestTimeoutSeconds": 300
},
"assets": {
"packagesBucket": "packages",
......
......@@ -33,6 +33,8 @@ class Packager extends Service {
}
async postHandler (req, res) {
req.setTimeout(config.http.requestTimeoutSeconds * 1000)
const rootUuid = parseURI(req.body.id).uuid
const requestConfig = {
headers: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment