From 491f95037f78b9a0931ea77593fd0b0fc5f5c66f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Apr 2011 05:35:46 +0000 Subject: [PATCH] Local configuration file template added, config-local.php will be ignored --- .gitattributes | 1 + .gitignore | 1 + application/hub/config-local.php-dist | 64 +++++++++++++++++++++++++++ application/hub/config.php | 2 +- 4 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 application/hub/config-local.php-dist diff --git a/.gitattributes b/.gitattributes index 01068421c..28f043c99 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,7 @@ application/.htaccess -text svneol=unset#text/plain application/hub/.htaccess -text svneol=unset#text/plain application/hub/class_ApplicationHelper.php svneol=native#text/plain +application/hub/config-local.php-dist svneol=native#text/plain application/hub/config.php svneol=native#text/plain application/hub/data.php svneol=native#text/plain application/hub/debug.php svneol=native#text/plain diff --git a/.gitignore b/.gitignore index 9fe36b979..69cb1981e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /.cache /.project /.settings +application/hub/config-local.php db/node_data/*.serialized docs/warn.log /nbproject diff --git a/application/hub/config-local.php-dist b/application/hub/config-local.php-dist new file mode 100644 index 000000000..4cbdceeb3 --- /dev/null +++ b/application/hub/config-local.php-dist @@ -0,0 +1,64 @@ + + * @version 0.0 + * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2011 Hub Developer Team + * @license GNU GPL 3.0 or any newer version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +// Some hub-specific configuration like port hostname where we will listen, etc. +$cfg = FrameworkConfiguration::getInstance(); + +// CFG: NODE-LISTEN-ADDR +$cfg->setConfigEntry('node_listen_addr', '0.0.0.0'); + +// CFG: NODE-TCP-LISTEN-PORT +$cfg->setConfigEntry('node_tcp_listen_port', 9060); + +// CFG: NODE-UDP-LISTEN-PORT +$cfg->setConfigEntry('node_udp_listen_port', 9060); + +// CFG: BOOT-NODE-TCP-LISTEN-PORT +$cfg->setConfigEntry('boot_node_tcp_listen_port', 9061); + +// CFG: BOOT-NODE-UDP-LISTEN-PORT +$cfg->setConfigEntry('boot_node_udp_listen_port', 9061); + +// CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular') +$cfg->setConfigEntry('node_default_mode', 'regular'); + +// CFG: EXTERNAL-IP +$cfg->setConfigEntry('external_ip', ''); + +// CFG: HUB-BOOTSTRAP-NODES +$cfg->setConfigEntry('hub_bootstrap_nodes', '188.138.90.169:9061'); + +// [EOF] +?> diff --git a/application/hub/config.php b/application/hub/config.php index 8a13c1483..d359fd85e 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -1,6 +1,6 @@ * @version 0.0 -- 2.39.5