From 7e374baee92f875b4c9aeb0354a10b1d5fe45702 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 28 Apr 2026 20:45:20 -0700 Subject: [PATCH] Update if the ssl toggle changes --- server/routers/siteResource/updateSiteResource.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/routers/siteResource/updateSiteResource.ts b/server/routers/siteResource/updateSiteResource.ts index ddcb1d44f..d2bb44a45 100644 --- a/server/routers/siteResource/updateSiteResource.ts +++ b/server/routers/siteResource/updateSiteResource.ts @@ -737,6 +737,9 @@ export async function handleMessagingForUpdatedSiteResource( const fullDomainChanged = existingSiteResource && existingSiteResource.fullDomain !== updatedSiteResource.fullDomain; + const sslChanged = + existingSiteResource && + existingSiteResource.ssl !== updatedSiteResource.ssl; const portRangesChanged = existingSiteResource && (existingSiteResource.tcpPortRangeString !== @@ -752,6 +755,7 @@ export async function handleMessagingForUpdatedSiteResource( destinationChanged || aliasChanged || fullDomainChanged || + sslChanged || portRangesChanged || destinationPortChanged ) { @@ -768,9 +772,10 @@ export async function handleMessagingForUpdatedSiteResource( ); } - // Only update targets on newt if destination changed + // Only update targets on newt if these items change if ( destinationChanged || + sslChanged || // we need to push a new cert if the ssl changed portRangesChanged || fullDomainChanged || // if the domain changes we need to update the certs and stuff destinationPortChanged