fix: add initial DNS servers
This commit is contained in:
parent
a5548c080c
commit
2f772080b8
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user