Merge pull request 'added my instance to README and fixed express not binding to config.listen_address' (#205) from ioensis/teddit:main into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/205
This commit is contained in:
teddit 2021-06-16 19:42:24 +02:00
commit 674731d92d
2 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ Community instances:
* [https://teddit.nautolan.racing](https://teddit.nautolan.racing)
* [https://teddit.tinfoil-hat.net](https://teddit.tinfoil-hat.net)
* [https://teddit.domain.glass](https://teddit.domain.glass)
* [https://snoo.ioens.is](https://snoo.ioens.is)
* [ibarajztopxnuhabfu7f...onion](http://ibarajztopxnuhabfu7fg6gbudynxofbnmvis3ltj6lfx47b6fhrd5qd.onion) (not working since 06/2021)
* [xugoqcf2pftm76vbznx4...i2p](http://xugoqcf2pftm76vbznx4xuhrzyb5b6zwpizpnw2hysexjdn5l2tq.b32.i2p)

4
app.js
View File

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