Permalink
Browse files

Make default listen address for CLI command web serve configureable

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>

resolves #13381
  • Loading branch information...
kobmaki authored and lippserd committed Dec 13, 2016
1 parent 43d5b01 commit 93b7b114495e5732c3a6142b741b1c0165339a99
Showing with 2 additions and 3 deletions.
  1. +2 −3 application/clicommands/WebCommand.php
@@ -26,8 +26,7 @@ public function serveAction()
// TODO: Sanity check!!
if ($socket === null) {
$socket = '0.0.0.0:80';
// throw new IcingaException('Socket is required');
$socket = $this->Config()->get('standalone','listen','0.0.0.0:80');
}
if ($documentRoot === null) {
$documentRoot = Icinga::app()->getBaseDir('public');
@@ -40,7 +39,7 @@ public function serveAction()
if ($fork) {
$this->forkAndExit();
}
echo "Serving Icingaweb from $documentRoot\n";
echo "Serving Icinga Web 2 from directory $documentRoot and listening on $socket\n";
$cmd = sprintf(
'%s -S %s -t %s %s',
readlink('/proc/self/exe'),

0 comments on commit 93b7b11

Please sign in to comment.