fix
This commit is contained in:
@@ -224,7 +224,7 @@ export async function configureHAProxy() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const { fqdn, updatedAt } = await db.prisma.setting.findFirst();
|
const { fqdn } = await db.prisma.setting.findFirst();
|
||||||
if (fqdn) {
|
if (fqdn) {
|
||||||
const domain = getDomain(fqdn);
|
const domain = getDomain(fqdn);
|
||||||
const isHttps = fqdn.startsWith('https://');
|
const isHttps = fqdn.startsWith('https://');
|
||||||
@@ -236,8 +236,7 @@ export async function configureHAProxy() {
|
|||||||
domain,
|
domain,
|
||||||
isHttps,
|
isHttps,
|
||||||
redirectValue,
|
redirectValue,
|
||||||
redirectTo: isWWW ? domain : 'www.' + domain,
|
redirectTo: isWWW ? domain : 'www.' + domain
|
||||||
updatedAt: updatedAt.getTime()
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const output = mustache.render(template, data);
|
const output = mustache.render(template, data);
|
||||||
|
Reference in New Issue
Block a user