mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
added the ability to listen at a specific ip
This commit is contained in:
parent
a47b5ab458
commit
5306a88214
3 changed files with 9 additions and 2 deletions
|
@ -254,8 +254,8 @@ async.waterfall([
|
|||
});
|
||||
|
||||
//let the server listen
|
||||
app.listen(settings.port);
|
||||
console.log("Server is listening at port " + settings.port);
|
||||
app.listen(settings.port, settings.ip);
|
||||
console.log("Server is listening at " + settings.ip + ":" + settings.port);
|
||||
|
||||
//init socket.io and redirect all requests to the MessageHandler
|
||||
var io = socketio.listen(app);
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
|
||||
var fs = require("fs");
|
||||
|
||||
/**
|
||||
* The IP ep-lite should listen to
|
||||
*/
|
||||
exports.ip = "0.0.0.0";
|
||||
|
||||
/**
|
||||
* The Port ep-lite should listen to
|
||||
*/
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
Please edit settings.json, not settings.json.template
|
||||
*/
|
||||
{
|
||||
//Ip and port which etherpad should bind at
|
||||
"ip": "0.0.0.0",
|
||||
"port" : 9001,
|
||||
|
||||
//The Type of the database. You can choose between sqlite and mysql
|
||||
|
|
Loading…
Reference in a new issue