summaryrefslogtreecommitdiff
path: root/config.php.sample
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-07 17:10:54 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-07 17:10:54 -0400
commit60861760fc3bdc1cdea407e8ee21eb8c54e77b8f (patch)
tree2bd269851136ae88494e09c10b774ae3c58aa690 /config.php.sample
parent95bb1c6a99766d065ffcde9523de05d8a1162c3d (diff)
Host multiple sites with the same codebase
This is the beginning of the code for status.net and related status farms. It will read basic information about a site from a shared, central database and use the data stored there to switch on the hostname.
Diffstat (limited to 'config.php.sample')
-rw-r--r--config.php.sample8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.php.sample b/config.php.sample
index 59e0cc712..eec2bb2c5 100644
--- a/config.php.sample
+++ b/config.php.sample
@@ -192,3 +192,11 @@ $config['sphinx']['port'] = 3312;
#Use a different hostname for SSL-encrypted pages
#$config['site']['sslserver'] = 'secure.example.org';
+
+#If you have a lot of status networks on the same server, you can
+#store the site data in a database and switch as follows
+#Status_network::setupDB('localhost', 'statusnet', 'statuspass', 'statusnet');
+#if (!Status_network::setupSite($_server, $_path)) {
+# print "Error\n";
+# exit(1);
+#}