MCPcopy
hub / github.com/Dokploy/dokploy / writeMiddleware

Function writeMiddleware

packages/server/src/utils/traefik/middleware.ts:109–114  ·  view source on GitHub ↗
(config: FileConfig)

Source from the content-addressed store, hash-verified

107 }
108};
109export const writeMiddleware = (config: FileConfig) => {
110 const { DYNAMIC_TRAEFIK_PATH } = paths();
111 const configPath = join(DYNAMIC_TRAEFIK_PATH, "middlewares.yml");
112 const newYamlContent = stringify(config);
113 writeFileSync(configPath, newYamlContent, "utf8");
114};
115
116export const createPathMiddlewares = async (
117 app: ApplicationNested,

Callers 9

createSecurityMiddlewareFunction · 0.90
removeSecurityMiddlewareFunction · 0.90
persistMiddlewaresFunction · 0.90
updateRedirectMiddlewareFunction · 0.90
createRedirectMiddlewareFunction · 0.90
removeRedirectMiddlewareFunction · 0.90
deleteAllMiddlewaresFunction · 0.85
createPathMiddlewaresFunction · 0.85
removePathMiddlewaresFunction · 0.85

Calls 1

pathsFunction · 0.90

Tested by

no test coverage detected