mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-09 12:16:36 +00:00
Control with build
This commit is contained in:
@@ -75,6 +75,7 @@ import {
|
|||||||
} from "@app/components/ui/collapsible";
|
} from "@app/components/ui/collapsible";
|
||||||
import { ContainersSelector } from "@app/components/ContainersSelector";
|
import { ContainersSelector } from "@app/components/ContainersSelector";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
|
||||||
const addTargetSchema = z.object({
|
const addTargetSchema = z.object({
|
||||||
ip: z.string().refine(isTargetValid),
|
ip: z.string().refine(isTargetValid),
|
||||||
@@ -772,6 +773,7 @@ export default function ReverseProxyTargets(props: {
|
|||||||
className="space-y-4"
|
className="space-y-4"
|
||||||
id="tls-settings-form"
|
id="tls-settings-form"
|
||||||
>
|
>
|
||||||
|
{build == "oss" && (
|
||||||
<FormField
|
<FormField
|
||||||
control={tlsSettingsForm.control}
|
control={tlsSettingsForm.control}
|
||||||
name="ssl"
|
name="ssl"
|
||||||
@@ -789,13 +791,16 @@ export default function ReverseProxyTargets(props: {
|
|||||||
onCheckedChange={(
|
onCheckedChange={(
|
||||||
val
|
val
|
||||||
) => {
|
) => {
|
||||||
field.onChange(val);
|
field.onChange(
|
||||||
|
val
|
||||||
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<FormField
|
<FormField
|
||||||
control={tlsSettingsForm.control}
|
control={tlsSettingsForm.control}
|
||||||
name="tlsServerName"
|
name="tlsServerName"
|
||||||
|
|||||||
Reference in New Issue
Block a user