reverseproxy: add forceRenewal check if only for completeness

This commit is contained in:
Girish Ramakrishnan
2026-02-19 20:22:45 +01:00
parent 466527884f
commit 207260821b
+1
View File
@@ -28,6 +28,7 @@ async function setTrustedIps(req, res, next) {
async function renewCerts(req, res, next) {
if ('rebuild' in req.body && typeof req.body.rebuild !== 'boolean') return next(new HttpError(400, 'rebuild must be a boolean'));
if ('forceRenewal' in req.body && typeof req.body.forceRenewal !== 'boolean') return next(new HttpError(400, 'forceRenewal must be a boolean')); // ignored if the CA has ARI support
const [error, taskId] = await safe(reverseProxy.startRenewCerts(req.body, AuditSource.fromRequest(req)));
if (error) return next(BoxError.toHttpError(error));