diff --git a/apps/dokploy/components/dashboard/application/domains/handle-domain.tsx b/apps/dokploy/components/dashboard/application/domains/handle-domain.tsx index bb5366c33..6af0e1e8c 100644 --- a/apps/dokploy/components/dashboard/application/domains/handle-domain.tsx +++ b/apps/dokploy/components/dashboard/application/domains/handle-domain.tsx @@ -208,6 +208,8 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => { const certificateType = form.watch("certificateType"); const https = form.watch("https"); const domainType = form.watch("domainType"); + const host = form.watch("host"); + const isTraefikMeDomain = host?.includes("traefik.me") || false; useEffect(() => { if (data) { @@ -502,6 +504,13 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => { to make your traefik.me domain work. )} + {isTraefikMeDomain && ( + + Note: traefik.me is a public HTTP + service and does not support SSL/HTTPS. HTTPS and + certificate options will not have any effect. + + )} Host
diff --git a/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx b/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx index eac4559f1..863885426 100644 --- a/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx +++ b/apps/dokploy/components/dashboard/application/preview-deployments/add-preview-domain.tsx @@ -86,6 +86,9 @@ export const AddPreviewDomain = ({ resolver: zodResolver(domain), }); + const host = form.watch("host"); + const isTraefikMeDomain = host?.includes("traefik.me") || false; + useEffect(() => { if (data) { form.reset({ @@ -157,6 +160,13 @@ export const AddPreviewDomain = ({ name="host" render={({ field }) => ( + {isTraefikMeDomain && ( + + Note: traefik.me is a public HTTP + service and does not support SSL/HTTPS. HTTPS and + certificate options will not have any effect. + + )} Host
@@ -245,6 +255,12 @@ export const AddPreviewDomain = ({ Automatically provision SSL Certificate. + {isTraefikMeDomain && ( + + HTTPS is not available for traefik.me domains as it + is a public HTTP-only service. + + )}
diff --git a/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-settings.tsx b/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-settings.tsx index 862d5f87a..32f791029 100644 --- a/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-settings.tsx +++ b/apps/dokploy/components/dashboard/application/preview-deployments/show-preview-settings.tsx @@ -4,6 +4,7 @@ import { useEffect, useState } from "react"; import { useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; +import { AlertBlock } from "@/components/shared/alert-block"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { @@ -100,6 +101,8 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => { }); const previewHttps = form.watch("previewHttps"); + const wildcardDomain = form.watch("wildcardDomain"); + const isTraefikMeDomain = wildcardDomain?.includes("traefik.me") || false; useEffect(() => { setIsEnabled(data?.isPreviewDeploymentsActive || false); @@ -168,6 +171,13 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
+ {isTraefikMeDomain && ( + + Note: traefik.me is a public HTTP service and + does not support SSL/HTTPS. HTTPS and certificate options will + not have any effect. + + )}