]> git.mxchange.org Git - hub.git/commitdiff
Local configuration file template added, config-local.php will be ignored
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 05:35:46 +0000 (05:35 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 05:35:46 +0000 (05:35 +0000)
.gitattributes
.gitignore
application/hub/config-local.php-dist [new file with mode: 0644]
application/hub/config.php

index 01068421cacd66951ef0ee8d0f642f322dc024d0..28f043c99e52f0831668a83b22baea35cb59c666 100644 (file)
@@ -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
index 9fe36b9792a29715098924ef91b5cd53d846e50b..69cb1981e120d9225729a48f4558aed4cc0b9c12 100644 (file)
@@ -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 (file)
index 0000000..4cbdcee
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+/**
+ * Local configuration entries which you can customize. Please keep the
+ * comments starting with CFG: as-is or else, the later configuration wizard
+ * (aka. 'admin' project) will not be able to parse it. You need to rename this
+ * file to config-local.php and make in that new file your changes.
+ *
+ * If you want to start an own network (which may accept different types of
+ * objects which would be rejected by the global network) please change
+ * hub_bootstrap_nodes (semicolon-seperated list) to your bootstrapper.
+ *
+ * You can set external_ip to a hostname, e.g. me.homelinux.org, which will be
+ * included in the announcement. This is very useful for consumer DSL
+ * connections because they might be disconnected every 24 hours and rotate the
+ * IP number.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+
+// 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]
+?>
index 8a13c14836e066d16c2b2f9b1a51f64e1086a619..d359fd85ebe201d831b3dfdfd96dbd4abbd58882 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Configuration entries for the hub only
+ * Configuration entries for this application only
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0