Add ability to specify interface

This commit is contained in:
watercrossing 2014-09-02 12:00:33 +01:00
parent c30bcfce53
commit fc9b887c0b

View file

@ -35,8 +35,8 @@ if Settings.catchErrors
BackgroundTasks.run()
port = Settings.port or Settings.internal?.web?.port or 3000
localInterface = Settings.interface or "0.0.0.0"
Server.server.listen port, localInterface, ->
host = Settings.internal.web.host or "localhost"
Server.server.listen port, host, ->
logger.info("web-sharelatex listening on port #{port}")
logger.info("#{require('http').globalAgent.maxSockets} sockets enabled")
if argv.user