reverseproxy: rebuild only when needed
re-creating nginx configs is only needed in 3 cases: * provider changes. we create a rebuild file for this * nginx config is somehow corrupt by external changes. user can click ui button on startup, dashboard also always creates the nginx configs. so it's always up to provide the button
This commit is contained in:
@@ -287,10 +287,11 @@ async function updateDashboardDomain(domain, auditSource) {
|
||||
safe(services.rebuildService('turn', auditSource), { debug }); // to update the realm variable
|
||||
}
|
||||
|
||||
async function renewCerts(auditSource) {
|
||||
async function renewCerts(options, auditSource) {
|
||||
assert.strictEqual(typeof options, 'object');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
const taskId = await tasks.add(tasks.TASK_CHECK_CERTS, [ auditSource ]);
|
||||
const taskId = await tasks.add(tasks.TASK_CHECK_CERTS, [ options, auditSource ]);
|
||||
tasks.startTask(taskId, {});
|
||||
return taskId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user