mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +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] = {
|
||||
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`)
|
||||
|
||||
Reference in New Issue
Block a user