Merge pull request 'Add port number in log for server listen callback' (#44) from samr/teddit:feat/logport into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/44
This commit is contained in:
teddit 2020-12-06 11:35:57 +01:00
commit f0462912f0

4
app.js
View File

@ -115,6 +115,6 @@ redis.on('error', (error) => {
}) })
if(config.https_enabled) { if(config.https_enabled) {
https.listen(config.ssl_port, '::', () => console.log(`Teddit running on https://${config.domain}`)) https.listen(config.ssl_port, '::', () => console.log(`Teddit running on https://${config.domain}:${config.ssl_port}`))
} }
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}`))