fix: add initial DNS servers

This commit is contained in:
Andras Bacsai 2022-09-07 09:06:30 +02:00
parent a5548c080c
commit 2f772080b8

View File

@ -17,7 +17,6 @@ const algorithm = 'aes-256-ctr';
async function main() { async function main() {
// Enable registration for the first user // Enable registration for the first user
// Set initial HAProxy password
const settingsFound = await prisma.setting.findFirst({}); const settingsFound = await prisma.setting.findFirst({});
if (!settingsFound) { if (!settingsFound) {
await prisma.setting.create({ await prisma.setting.create({
@ -25,7 +24,8 @@ async function main() {
isRegistrationEnabled: true, isRegistrationEnabled: true,
proxyPassword: encrypt(generatePassword()), proxyPassword: encrypt(generatePassword()),
proxyUser: cuid(), proxyUser: cuid(),
arch: process.arch arch: process.arch,
DNSServers: '1.1.1.1,8.8.8.8'
} }
}); });
} else { } else {