mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-10 00:15:28 +02:00
feat: add middlewares to domains
This commit is contained in:
@@ -302,6 +302,11 @@ export const createDomainLabels = (
|
||||
middlewares.push(middlewareName);
|
||||
}
|
||||
|
||||
// Add custom middlewares
|
||||
if (domain.middlewares?.length) {
|
||||
middlewares.push(...domain.middlewares);
|
||||
}
|
||||
|
||||
// Apply middlewares to router if any exist
|
||||
if (middlewares.length > 0) {
|
||||
labels.push(
|
||||
|
||||
Reference in New Issue
Block a user