In case of non-blocking connections (and that is for 99.9999% the case here)
[hub.git] / application / hub / config-local.php-dist
1 <?php
2 /**
3  * Local configuration entries which you can customize. Please keep the
4  * comments starting with CFG: as-is or else, the later configuration wizard
5  * (aka. 'admin' project) will not be able to parse it. You need to rename this
6  * file to config-local.php and make in that new file your changes.
7  *
8  * If you want to start an own network (which may accept different types of
9  * objects which would be rejected by the global network) please change
10  * hub_bootstrap_nodes (semicolon-seperated list) to your bootstrapper.
11  *
12  * You can set external_address to a hostname, e.g. me.homelinux.org, which will be
13  * included in the announcement. This is very useful for consumer DSL
14  * connections because they might be disconnected every 24 hours and rotate the
15  * IP number.
16  *
17  * @author              Roland Haeder <webmaster@ship-simu.org>
18  * @version             0.0
19  * @copyright   Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
20  * @license             GNU GPL 3.0 or any newer version
21  *
22  * This program is free software: you can redistribute it and/or modify
23  * it under the terms of the GNU General Public License as published by
24  * the Free Software Foundation, either version 3 of the License, or
25  * (at your option) any later version.
26  *
27  * This program is distributed in the hope that it will be useful,
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30  * GNU General Public License for more details.
31  *
32  * You should have received a copy of the GNU General Public License
33  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
34  */
35
36 // Some hub-specific configuration like port hostname where we will listen, etc.
37 $cfg = FrameworkConfiguration::getSelfInstance();
38
39 // CFG: NODE-LISTEN-ADDR
40 $cfg->setConfigEntry('node_listen_addr', '0.0.0.0');
41
42 // CFG: NODE-LISTEN-PORT
43 $cfg->setConfigEntry('node_listen_port', 9060);
44
45 // CFG: NODE-DEFAULT-MODE (can be 'regular', 'list', 'master' or 'boot', default is 'regular')
46 $cfg->setConfigEntry('node_default_mode', 'regular');
47
48 // CFG: EXTERNAL-ADDRESS
49 // Use this if auto-detection fails: $cfg->setConfigEntry('external_address', '');
50
51 // CFG: ALLOW-PUBLISH-INTERNAL-ADDRESS
52 // Use this in intranet-only environment: $cfg->setConfigEntry('allow_publish_internal_address', 'Y');
53
54 // CFG: HUB-BOOTSTRAP-NODES
55 $cfg->setConfigEntry('hub_bootstrap_nodes', 'tcp://188.138.90.169:9060');
56
57 // CFG: ENABLE-FEATURE-HUBCOINS-REWARD
58 // Disable this if you don't want to "earn" HubCoins: $cfg->setConfigEntry('enable_feature_hubcoins_reward', 'N');
59
60 // CFG: ENABLE-FEATURE-FUSE
61 // Enable this, if you have fuse.dll/so installed and want to access your node: $cfg->setConfigEntry('enable_feature_fuse', 'Y');
62
63 // [EOF]
64 ?>