reject unauthorized

This commit is contained in:
Alex Holliday committed 2025-11-27 20:41:49 +00:00
1 parent 686b96d4b3
commit 5876b97ede
19 files changed
+37 -14

No files matched your search

@@ -38,6 +38,7 @@ const UptimeConfigurePage = () => {
n: data.n,
notificationChannels: data.notificationChannels,
interval,
rejectUnauthorized: data.rejectUnauthorized,
};
const result = await patch(`/monitors/${id}`, submitData);
if (result) {
@@ -69,7 +69,6 @@ const UptimeDetailsPage = () => {
}
const stats = response?.data?.stats || null;
console.log(stats);
const avgResponseTime = stats?.avgResponseTime || 0;
const maxResponseTime = stats?.maxResponseTime || 0;
+19
View File
@@ -4,6 +4,7 @@ import {
Button,
AutoComplete,
RadioWithDescription,
Switch,
} from "@/components/inputs";
import { ConfigBox, BasePage } from "@/components/design-elements";
import RadioGroup from "@mui/material/RadioGroup";
@@ -314,6 +315,24 @@ export const UptimeForm = ({
/>
}
/>
<ConfigBox
title={t("createMonitorPage.rejectUnauthorizedTitle")}
subtitle={t("createMonitorPage.rejectUnauthorizedDescription")}
rightContent={
<Controller
name="rejectUnauthorized"
control={control}
render={({ field }) => (
<Stack direction="row" alignItems={"center"}>
<Switch {...field} checked={field.value} />
<Typography>
{field.value ? "Enabled (recommended)" : "Disabled"}
</Typography>
</Stack>
)}
/>
}
/>
<Stack direction="row" justifyContent="flex-end">
<Button
loading={loading}