mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
added http_addr to config.js.template to bind wikiless to specific ip address
This commit is contained in:
@@ -16,7 +16,7 @@ XMR: 832ogRwuoSs2JGYg7wJTqshidK7dErgNdfpenQ9dzMghNXQTJRby1xGbqC3gW3GAifRM9E84J91
|
||||
[https://wikiless.org](https://wikiless.org) - Official instance
|
||||
|
||||
Community instances:
|
||||
* -
|
||||
* - [https://wiki.ioens.is](https://wiki.ioens.is)
|
||||
|
||||
## TODO
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ const config = {
|
||||
domain: process.env.DOMAIN || '127.0.0.1', // Or for example 'wikiless.org' or '127.0.0.1:1337'. Remember to add port here if needed.
|
||||
default_lang: process.env.DEFAULT_LANG || 'en',
|
||||
theme: process.env.THEME || '', // '' or 'dark'
|
||||
http_addr: process.env.HTTP_ADDR || '127.0.0.1', // bind wikiless to specific ip address.
|
||||
nonssl_port: process.env.NONSSL_PORT || 8080,
|
||||
|
||||
/**
|
||||
|
||||
Generated
-1
@@ -5,7 +5,6 @@
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "Wikiless",
|
||||
"version": "0.0.2",
|
||||
"license": "APGL-3.0",
|
||||
"dependencies": {
|
||||
|
||||
+2
-2
@@ -103,6 +103,6 @@ redis.on('error', (error) => {
|
||||
})
|
||||
|
||||
if(config.https_enabled) {
|
||||
https.listen(config.ssl_port, '::', () => console.log(`Wikiless running on https://${config.domain}`))
|
||||
https.listen(config.ssl_port, config.http_addr, () => console.log(`Wikiless ${config.domain} running on https://${config.http_addr}:${config.ssl_port}`))
|
||||
}
|
||||
http.listen(config.nonssl_port, '::', () => console.log(`Wikiless running on http://${config.domain}`))
|
||||
http.listen(config.nonssl_port, config.http_addr, () => console.log(`Wikiless ${config.domain} running on http://${config.http_addr}:${config.nonssl_port}`))
|
||||
|
||||
Reference in New Issue
Block a user