mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-03 17:26:38 +00:00
redirect everything to maintenance page
This commit is contained in:
committed by
Owen Schwartz
parent
2d92111f1d
commit
d3c4688c0f
@@ -396,11 +396,13 @@ export async function getTraefikConfig(
|
|||||||
}
|
}
|
||||||
|
|
||||||
config_output.http.middlewares[rewriteMiddlewareName] = {
|
config_output.http.middlewares[rewriteMiddlewareName] = {
|
||||||
replacePath: {
|
replacePathRegex: {
|
||||||
path: "/maintenance-screen"
|
regex: "^/(.*)",
|
||||||
|
replacement: "/maintenance-screen"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const rule = `Host(\`${fullDomain}\`)`;
|
const rule = `Host(\`${fullDomain}\`)`;
|
||||||
|
|
||||||
console.log('DEBUG: Generated rule:', rule); // Should show: Host(`pangolin.pallavi.fosrl.io`)
|
console.log('DEBUG: Generated rule:', rule); // Should show: Host(`pangolin.pallavi.fosrl.io`)
|
||||||
|
|||||||
Reference in New Issue
Block a user