mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 10:16:41 +00:00
fix broken inputs in health check form
This commit is contained in:
@@ -512,9 +512,18 @@ export default function ReverseProxyTargets(props: {
|
|||||||
port: target.port,
|
port: target.port,
|
||||||
enabled: target.enabled,
|
enabled: target.enabled,
|
||||||
hcEnabled: target.hcEnabled,
|
hcEnabled: target.hcEnabled,
|
||||||
hcPath: target.hcPath,
|
hcPath: target.hcPath || null,
|
||||||
hcInterval: target.hcInterval,
|
hcScheme: target.hcScheme || null,
|
||||||
hcTimeout: target.hcTimeout
|
hcHostname: target.hcHostname || null,
|
||||||
|
hcPort: target.hcPort || null,
|
||||||
|
hcInterval: target.hcInterval || null,
|
||||||
|
hcTimeout: target.hcTimeout || null,
|
||||||
|
hcHeaders: target.hcHeaders || null,
|
||||||
|
hcFollowRedirects: target.hcFollowRedirects || null,
|
||||||
|
hcMethod: target.hcMethod || null,
|
||||||
|
hcStatus: target.hcStatus || null,
|
||||||
|
hcUnhealthyInterval: target.hcUnhealthyInterval || null,
|
||||||
|
hcMode: target.hcMode || null
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only include path-related fields for HTTP resources
|
// Only include path-related fields for HTTP resources
|
||||||
@@ -718,7 +727,9 @@ export default function ReverseProxyTargets(props: {
|
|||||||
hcHeaders: target.hcHeaders || null,
|
hcHeaders: target.hcHeaders || null,
|
||||||
hcFollowRedirects: target.hcFollowRedirects || null,
|
hcFollowRedirects: target.hcFollowRedirects || null,
|
||||||
hcMethod: target.hcMethod || null,
|
hcMethod: target.hcMethod || null,
|
||||||
hcStatus: target.hcStatus || null
|
hcStatus: target.hcStatus || null,
|
||||||
|
hcUnhealthyInterval: target.hcUnhealthyInterval || null,
|
||||||
|
hcMode: target.hcMode || null
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only include path-related fields for HTTP resources
|
// Only include path-related fields for HTTP resources
|
||||||
@@ -1814,6 +1825,7 @@ export default function ReverseProxyTargets(props: {
|
|||||||
30
|
30
|
||||||
}}
|
}}
|
||||||
onChanges={async (config) => {
|
onChanges={async (config) => {
|
||||||
|
console.log("here");
|
||||||
if (selectedTargetForHealthCheck) {
|
if (selectedTargetForHealthCheck) {
|
||||||
console.log(config);
|
console.log(config);
|
||||||
updateTargetHealthCheck(
|
updateTargetHealthCheck(
|
||||||
|
|||||||
@@ -574,7 +574,9 @@ export default function Page() {
|
|||||||
hcPort: target.hcPort || null,
|
hcPort: target.hcPort || null,
|
||||||
hcFollowRedirects:
|
hcFollowRedirects:
|
||||||
target.hcFollowRedirects || null,
|
target.hcFollowRedirects || null,
|
||||||
hcStatus: target.hcStatus || null
|
hcStatus: target.hcStatus || null,
|
||||||
|
hcUnhealthyInterval: target.hcUnhealthyInterval || null,
|
||||||
|
hcMode: target.hcMode || null
|
||||||
};
|
};
|
||||||
|
|
||||||
// Only include path-related fields for HTTP resources
|
// Only include path-related fields for HTTP resources
|
||||||
|
|||||||
Reference in New Issue
Block a user