mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-03 14:30:57 +00:00
Update if the ssl toggle changes
This commit is contained in:
@@ -737,6 +737,9 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
const fullDomainChanged =
|
const fullDomainChanged =
|
||||||
existingSiteResource &&
|
existingSiteResource &&
|
||||||
existingSiteResource.fullDomain !== updatedSiteResource.fullDomain;
|
existingSiteResource.fullDomain !== updatedSiteResource.fullDomain;
|
||||||
|
const sslChanged =
|
||||||
|
existingSiteResource &&
|
||||||
|
existingSiteResource.ssl !== updatedSiteResource.ssl;
|
||||||
const portRangesChanged =
|
const portRangesChanged =
|
||||||
existingSiteResource &&
|
existingSiteResource &&
|
||||||
(existingSiteResource.tcpPortRangeString !==
|
(existingSiteResource.tcpPortRangeString !==
|
||||||
@@ -752,6 +755,7 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
destinationChanged ||
|
destinationChanged ||
|
||||||
aliasChanged ||
|
aliasChanged ||
|
||||||
fullDomainChanged ||
|
fullDomainChanged ||
|
||||||
|
sslChanged ||
|
||||||
portRangesChanged ||
|
portRangesChanged ||
|
||||||
destinationPortChanged
|
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 (
|
if (
|
||||||
destinationChanged ||
|
destinationChanged ||
|
||||||
|
sslChanged || // we need to push a new cert if the ssl changed
|
||||||
portRangesChanged ||
|
portRangesChanged ||
|
||||||
fullDomainChanged || // if the domain changes we need to update the certs and stuff
|
fullDomainChanged || // if the domain changes we need to update the certs and stuff
|
||||||
destinationPortChanged
|
destinationPortChanged
|
||||||
|
|||||||
Reference in New Issue
Block a user