mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-17 06:24:32 +00:00
@@ -56,6 +56,8 @@ function queryTargets(resourceId: number) {
|
|||||||
hcStatus: targetHealthCheck.hcStatus,
|
hcStatus: targetHealthCheck.hcStatus,
|
||||||
hcHealth: targetHealthCheck.hcHealth,
|
hcHealth: targetHealthCheck.hcHealth,
|
||||||
hcTlsServerName: targetHealthCheck.hcTlsServerName,
|
hcTlsServerName: targetHealthCheck.hcTlsServerName,
|
||||||
|
hcHealthyThreshold: targetHealthCheck.hcHealthyThreshold,
|
||||||
|
hcUnhealthyThreshold: targetHealthCheck.hcUnhealthyThreshold,
|
||||||
path: targets.path,
|
path: targets.path,
|
||||||
pathMatchType: targets.pathMatchType,
|
pathMatchType: targets.pathMatchType,
|
||||||
rewritePath: targets.rewritePath,
|
rewritePath: targets.rewritePath,
|
||||||
|
|||||||
@@ -652,6 +652,8 @@ function ProxyResourceTargetsForm({
|
|||||||
hcMode: null,
|
hcMode: null,
|
||||||
hcUnhealthyInterval: null,
|
hcUnhealthyInterval: null,
|
||||||
hcTlsServerName: null,
|
hcTlsServerName: null,
|
||||||
|
hcHealthyThreshold: null,
|
||||||
|
hcUnhealthyThreshold: null,
|
||||||
siteType: sites.length > 0 ? sites[0].type : null,
|
siteType: sites.length > 0 ? sites[0].type : null,
|
||||||
new: true,
|
new: true,
|
||||||
updated: false
|
updated: false
|
||||||
@@ -761,7 +763,9 @@ function ProxyResourceTargetsForm({
|
|||||||
hcStatus: target.hcStatus || null,
|
hcStatus: target.hcStatus || null,
|
||||||
hcUnhealthyInterval: target.hcUnhealthyInterval || null,
|
hcUnhealthyInterval: target.hcUnhealthyInterval || null,
|
||||||
hcMode: target.hcMode || null,
|
hcMode: target.hcMode || null,
|
||||||
hcTlsServerName: target.hcTlsServerName
|
hcTlsServerName: target.hcTlsServerName,
|
||||||
|
hcHealthyThreshold: target.hcHealthyThreshold || null,
|
||||||
|
hcUnhealthyThreshold: target.hcUnhealthyThreshold || null
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only include path-related fields for HTTP resources
|
// Only include path-related fields for HTTP resources
|
||||||
@@ -1018,7 +1022,13 @@ function ProxyResourceTargetsForm({
|
|||||||
30,
|
30,
|
||||||
hcTlsServerName:
|
hcTlsServerName:
|
||||||
selectedTargetForHealthCheck.hcTlsServerName ||
|
selectedTargetForHealthCheck.hcTlsServerName ||
|
||||||
undefined
|
undefined,
|
||||||
|
hcHealthyThreshold:
|
||||||
|
selectedTargetForHealthCheck.hcHealthyThreshold ||
|
||||||
|
1,
|
||||||
|
hcUnhealthyThreshold:
|
||||||
|
selectedTargetForHealthCheck.hcUnhealthyThreshold ||
|
||||||
|
1
|
||||||
}}
|
}}
|
||||||
onChanges={async (config) => {
|
onChanges={async (config) => {
|
||||||
if (selectedTargetForHealthCheck) {
|
if (selectedTargetForHealthCheck) {
|
||||||
|
|||||||
@@ -303,6 +303,8 @@ export default function Page() {
|
|||||||
hcMode: null,
|
hcMode: null,
|
||||||
hcUnhealthyInterval: null,
|
hcUnhealthyInterval: null,
|
||||||
hcTlsServerName: null,
|
hcTlsServerName: null,
|
||||||
|
hcHealthyThreshold: null,
|
||||||
|
hcUnhealthyThreshold: null,
|
||||||
siteType: sites.length > 0 ? sites[0].type : null,
|
siteType: sites.length > 0 ? sites[0].type : null,
|
||||||
new: true,
|
new: true,
|
||||||
updated: false
|
updated: false
|
||||||
@@ -552,7 +554,11 @@ export default function Page() {
|
|||||||
hcUnhealthyInterval:
|
hcUnhealthyInterval:
|
||||||
target.hcUnhealthyInterval || null,
|
target.hcUnhealthyInterval || null,
|
||||||
hcMode: target.hcMode || null,
|
hcMode: target.hcMode || null,
|
||||||
hcTlsServerName: target.hcTlsServerName
|
hcTlsServerName: target.hcTlsServerName,
|
||||||
|
hcHealthyThreshold:
|
||||||
|
target.hcHealthyThreshold || null,
|
||||||
|
hcUnhealthyThreshold:
|
||||||
|
target.hcUnhealthyThreshold || null
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only include path-related fields for HTTP resources
|
// Only include path-related fields for HTTP resources
|
||||||
@@ -1520,7 +1526,13 @@ export default function Page() {
|
|||||||
30,
|
30,
|
||||||
hcTlsServerName:
|
hcTlsServerName:
|
||||||
selectedTargetForHealthCheck.hcTlsServerName ||
|
selectedTargetForHealthCheck.hcTlsServerName ||
|
||||||
undefined
|
undefined,
|
||||||
|
hcHealthyThreshold:
|
||||||
|
selectedTargetForHealthCheck.hcHealthyThreshold ||
|
||||||
|
1,
|
||||||
|
hcUnhealthyThreshold:
|
||||||
|
selectedTargetForHealthCheck.hcUnhealthyThreshold ||
|
||||||
|
1
|
||||||
}}
|
}}
|
||||||
onChanges={async (config) => {
|
onChanges={async (config) => {
|
||||||
if (selectedTargetForHealthCheck) {
|
if (selectedTargetForHealthCheck) {
|
||||||
|
|||||||
Reference in New Issue
Block a user