[Groonga-commit] droonga/droonga-http-server at c393c94 [master] Ask listening IP address by droonga-http-server-configure

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Wed Nov 19 18:26:20 JST 2014


YUKI Hiroshi	2014-11-19 18:26:20 +0900 (Wed, 19 Nov 2014)

  New Revision: c393c94db60c87c1aef5941d6276ca373ab2c582
  https://github.com/droonga/droonga-http-server/commit/c393c94db60c87c1aef5941d6276ca373ab2c582

  Message:
    Ask listening IP address by droonga-http-server-configure

  Modified files:
    bin/droonga-http-server-configure

  Modified: bin/droonga-http-server-configure (+3 -1)
===================================================================
--- bin/droonga-http-server-configure    2014-11-19 18:21:42 +0900 (be63707)
+++ bin/droonga-http-server-configure    2014-11-19 18:26:20 +0900 (9dc212d)
@@ -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'); })
@@ -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;
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る