Skip to content

Commit

Permalink
Ask listening IP address by droonga-http-server-configure
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Nov 19, 2014
1 parent 799df1a commit c393c94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/droonga-http-server-configure
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ function tryResetConfigs() {
options.systemLogFile = 'droonga-http-server.system.log';
options.environment = 'production';

setIntegerOption('port', 'port')
setIntegerOption('host', 'IP address to accept requests from clients (0.0.0.0 means "any IP address")')
.then(function() { return setIntegerOption('port', 'port'); })
.then(function() { return setStringOption('receiveHostName', 'hostname of this node'); })
.then(function() { return setStringsOption('droongaEngineHostNames', 'hostnames of droonga-engine nodes'); })
.then(function() { return setIntegerOption('droongaEnginePort', 'port number of the droonga-engine node'); })
Expand All @@ -319,6 +320,7 @@ function writeNewConfigs() {
return resolve();

var configs = {};
configs.host = configValues.host;
configs.port = configValues.port;
configs.access_log_file = configValues.accessLogFile;
configs.system_log_file = configValues.systemLogFile;
Expand Down

0 comments on commit c393c94

Please sign in to comment.