mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-09 20:37:45 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -265,7 +265,8 @@ export const writeTraefikConfigRemote = async (
|
|||||||
const configPath = path.join(DYNAMIC_TRAEFIK_PATH, `${appName}.yml`);
|
const configPath = path.join(DYNAMIC_TRAEFIK_PATH, `${appName}.yml`);
|
||||||
if (traefikConfig.http?.middlewares) {
|
if (traefikConfig.http?.middlewares) {
|
||||||
// traefik will fail to start if the file contains middlewares entry but no middlewares are defined
|
// traefik will fail to start if the file contains middlewares entry but no middlewares are defined
|
||||||
const hasNoMiddlewares = Object.keys(traefikConfig.http.middlewares).length === 0;
|
const hasNoMiddlewares =
|
||||||
|
Object.keys(traefikConfig.http.middlewares).length === 0;
|
||||||
if (hasNoMiddlewares) {
|
if (hasNoMiddlewares) {
|
||||||
// if there aren't any middlewares, remove the whole section
|
// if there aren't any middlewares, remove the whole section
|
||||||
delete traefikConfig.http.middlewares;
|
delete traefikConfig.http.middlewares;
|
||||||
|
|||||||
Reference in New Issue
Block a user