Increases timeouts in front- and backend

This commit is contained in:
chaptergy
2020-10-08 13:21:17 +02:00
parent 514b13fcc2
commit 95208a50a7
8 changed files with 20 additions and 10 deletions

View File

@ -586,7 +586,8 @@ module.exports = {
/**
* @param {Object} data
*/
create: function (data, timeout = 180000) {
create: function (data) {
const timeout = 180000 + (data.meta.propagation_seconds ? Number(data.meta.propagation_seconds) * 1000 : 0);
return fetch('post', 'nginx/certificates', data, {timeout});
},