forked from GNUsocial/gnu-social
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.
This commit is contained in:
@@ -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);
|
||||
#}
|
||||
|
Reference in New Issue
Block a user