+
+
Middlewares
+
+
+
+
+ ?
+
+
+
+
+ Add Traefik middleware references. Middlewares
+ must be defined in your Traefik configuration.
+
+
+
+
+
+
+ {field.value?.map((name, index) => (
+
+ {name}
+ {
+ const newMiddlewares = [...(field.value || [])];
+ newMiddlewares.splice(index, 1);
+ form.setValue("middlewares", newMiddlewares);
+ }}
+ />
+
+ ))}
+
+
+
+ {
+ if (e.key === "Enter") {
+ e.preventDefault();
+ const input = e.currentTarget;
+ const value = input.value.trim();
+ if (value && !field.value?.includes(value)) {
+ form.setValue("middlewares", [
+ ...(field.value || []),
+ value,
+ ]);
+ input.value = "";
+ }
+ }
+ }}
+ />
+
+
+
+
+
+ )}
+ />
diff --git a/apps/dokploy/components/dashboard/application/domains/show-domains.tsx b/apps/dokploy/components/dashboard/application/domains/show-domains.tsx
index dc0c711bf..e971f9ab7 100644
--- a/apps/dokploy/components/dashboard/application/domains/show-domains.tsx
+++ b/apps/dokploy/components/dashboard/application/domains/show-domains.tsx
@@ -560,6 +560,22 @@ export const ShowDomains = ({ id, type }: Props) => {
)}
+ {item.middlewares?.map((middleware, index) => (
+