Kouhei Sutou
null+****@clear*****
Mon Nov 3 10:17:51 JST 2014
Kouhei Sutou 2014-11-03 10:17:51 +0900 (Mon, 03 Nov 2014) New Revision: b80de581f2b27d979f2377161a065e8b3dbc08c8 https://github.com/droonga/droonga-http-server/commit/b80de581f2b27d979f2377161a065e8b3dbc08c8 Message: Indent Modified files: lib/default-configs.js Modified: lib/default-configs.js (+32 -32) =================================================================== --- lib/default-configs.js 2014-11-02 02:07:22 +0900 (9735240) +++ lib/default-configs.js 2014-11-03 10:17:51 +0900 (3af5ae0) @@ -51,42 +51,42 @@ function define(slot, path, value) { } function defineDefaultConfigs(configs) { -define(engineConfigs, 'host', '127.0.0.1'); -define(engineConfigs, 'port', 10031); -define(engineConfigs, 'tag', 'droonga'); + define(engineConfigs, 'host', '127.0.0.1'); + define(engineConfigs, 'port', 10031); + define(engineConfigs, 'tag', 'droonga'); -define(configs, 'port', 10041); -define(configs, 'cache_size', 100); -define(configs, 'enable_trust_proxy', false); -define(configs, 'plugins', [ - droonga.API_REST, - droonga.API_GROONGA, - droonga.API_DROONGA -]); -define(configs, 'environment', process.env.NODE_ENV || 'development'); + define(configs, 'port', 10041); + define(configs, 'cache_size', 100); + define(configs, 'enable_trust_proxy', false); + define(configs, 'plugins', [ + droonga.API_REST, + droonga.API_GROONGA, + droonga.API_DROONGA + ]); + define(configs, 'environment', process.env.NODE_ENV || 'development'); -if (configs.daemon) { - define(configs, 'pid_file', 'droonga-http-server.pid'); - define(configs, 'access_log_file', 'droonga-http-server.access.log'); - define(configs, 'system_log_file', 'droonga-http-server.system.log'); -} else { - define(configs, 'daemon', false); - define(configs, 'access_log_file', '-'); - define(configs, 'system_log_file', '-'); -} -define(configs, 'system_log_level', 'warn'); + if (configs.daemon) { + define(configs, 'pid_file', 'droonga-http-server.pid'); + define(configs, 'access_log_file', 'droonga-http-server.access.log'); + define(configs, 'system_log_file', 'droonga-http-server.system.log'); + } else { + define(configs, 'daemon', false); + define(configs, 'access_log_file', '-'); + define(configs, 'system_log_file', '-'); + } + define(configs, 'system_log_level', 'warn'); -define(configs, 'engine.host', engineConfigs.host); -define(configs, 'engine.port', engineConfigs.port); -define(configs, 'engine.tag', engineConfigs.tag); -define(configs, 'engine.default_dataset', 'Default'); -// We can use the host name of the droonga-engine as the receive host -// of the http server, because this computer works as a droonga-engine -// node and it is guaranteed that this computer can be accessed with -// the host name. -define(configs, 'engine.receive_host', engineConfigs.host); + define(configs, 'engine.host', engineConfigs.host); + define(configs, 'engine.port', engineConfigs.port); + define(configs, 'engine.tag', engineConfigs.tag); + define(configs, 'engine.default_dataset', 'Default'); + // We can use the host name of the droonga-engine as the receive host + // of the http server, because this computer works as a droonga-engine + // node and it is guaranteed that this computer can be accessed with + // the host name. + define(configs, 'engine.receive_host', engineConfigs.host); -return configs; + return configs; } module.exports = setBaseDir(baseDir); -------------- next part -------------- HTML����������������������������...Download