remove settings.dashboardOrigin
This commit is contained in:
@@ -136,10 +136,10 @@ async function oomEvent(eventId, containerId, app, addonName /*, event*/) {
|
||||
} else {
|
||||
title = `The ${addonName} service ran out of memory`;
|
||||
}
|
||||
message = `The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.dashboardOrigin()}/#/services)`;
|
||||
message = `The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](https://${settings.dashboardFqdn()}/#/services)`;
|
||||
} else if (app) {
|
||||
title = `The app at ${app.fqdn} ran out of memory.`;
|
||||
message = `The app has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.dashboardOrigin()}/#/app/${app.id}/resources)`;
|
||||
message = `The app has been restarted automatically. If you see this notification often, consider increasing the [memory limit](https://${settings.dashboardFqdn()}/#/app/${app.id}/resources)`;
|
||||
}
|
||||
|
||||
await add(title, message, { eventId });
|
||||
@@ -220,7 +220,7 @@ async function backupFailed(eventId, taskId, errorMessage) {
|
||||
|
||||
const superadmins = await users.getSuperadmins();
|
||||
for (const superadmin of superadmins) {
|
||||
await mailer.backupFailed(superadmin.email, errorMessage, `${settings.dashboardOrigin()}/logs.html?taskId=${taskId}`);
|
||||
await mailer.backupFailed(superadmin.email, errorMessage, `https://${settings.dashboardFqdn()}/logs.html?taskId=${taskId}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user