redirect everything to maintenance page

This commit is contained in:
Pallavi Kumari
2025-11-11 01:17:59 +05:30
committed by Owen Schwartz
parent 2d92111f1d
commit d3c4688c0f

View File

@@ -396,11 +396,13 @@ export async function getTraefikConfig(
}
config_output.http.middlewares[rewriteMiddlewareName] = {
replacePath: {
path: "/maintenance-screen"
replacePathRegex: {
regex: "^/(.*)",
replacement: "/maintenance-screen"
}
};
const rule = `Host(\`${fullDomain}\`)`;
console.log('DEBUG: Generated rule:', rule); // Should show: Host(`pangolin.pallavi.fosrl.io`)