fix fuzzy search result - to be array as well

This commit is contained in:
Dobromir Popov
2024-02-27 02:44:58 +02:00
parent 5bc7d1ad22
commit af4923ba20
5 changed files with 17 additions and 11 deletions

View File

@ -79,14 +79,14 @@ app
}
next();
});
}
if (process.env.SSL_KEY && process.env.SSL_CERT) {
const options = {
key: fs.readFileSync(process.env.SSL_KEY),
cert: fs.readFileSync(process.env.SSL_CERT),
secureProtocol: 'TLSv1_2_method', // Example: Force TLS 1.2
};
https.createServer(options, server).listen(PORT);
if (process.env.SSL_KEY && process.env.SSL_CERT) {
const options = {
key: fs.readFileSync(process.env.SSL_KEY),
cert: fs.readFileSync(process.env.SSL_CERT),
secureProtocol: 'TLSv1_2_method', // Example: Force TLS 1.2
};
https.createServer(options, server).listen(PORT);
}
}
// Add the middleware to set 'x-forwarded-host' header