add port for listening http

This commit is contained in:
teddit 2020-12-04 23:11:43 +01:00
parent 324691dbb7
commit 1dd2cb5fe1
1 changed files with 1 additions and 2 deletions

3
app.js
View File

@ -102,6 +102,5 @@ redis.on('error', (error) => {
if(config.https_enabled) {
https.listen(config.ssl_port, '::', () => console.log(`Teddit running on https://${config.domain}`))
//https.listen(SSL_PORT, '::', () => console.log(`Teddit running on https://${domain}`))
}
http.listen(config.nonssl_port, '::', () => console.log(`Teddit running on http://${config.domain}`))
http.listen(config.nonssl_port, '::', () => console.log(`Teddit running on http://${config.domain}:${config.nonssl_port}`))