Update if the ssl toggle changes

This commit is contained in:
Owen
2026-04-28 20:45:20 -07:00
parent 4cf6ca1d55
commit 7e374baee9

View File

@@ -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