This commit is contained in:
Andras Bacsai 2022-03-01 15:25:13 +01:00
parent f51f7bc82a
commit 9a599981ef

View File

@ -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) {
const domain = getDomain(fqdn);
const isHttps = fqdn.startsWith('https://');
@ -236,8 +236,7 @@ export async function configureHAProxy() {
domain,
isHttps,
redirectValue,
redirectTo: isWWW ? domain : 'www.' + domain,
updatedAt: updatedAt.getTime()
redirectTo: isWWW ? domain : 'www.' + domain
});
}
const output = mustache.render(template, data);