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) { 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);