mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Make MySQL stuff configurable
This commit is contained in:
parent
e28c2e8899
commit
1e561a2bbc
2 changed files with 28 additions and 5 deletions
|
@ -23,11 +23,23 @@ return array(
|
|||
'phabricator.base-uri' => null,
|
||||
|
||||
|
||||
//
|
||||
'phabricator.csrf-key' => '0b7ec0592e0a2829d8b71df2fa269b2c6172eca3',
|
||||
|
||||
|
||||
// -- Facebook ---------------------------------------------------------------
|
||||
|
||||
// -- MySQL --------------------------------------------------------------- //
|
||||
|
||||
// The username to use when connecting to MySQL.
|
||||
'mysql.user' => 'root',
|
||||
|
||||
// The password to use when connecting to MySQL.
|
||||
'mysql.pass' => '',
|
||||
|
||||
// The MySQL server to connect to.
|
||||
'mysql.host' => 'localhost',
|
||||
|
||||
|
||||
// -- Facebook ------------------------------------------------------------ //
|
||||
|
||||
// Can users use Facebook credentials to login to Phabricator?
|
||||
'facebook.auth-enabled' => false,
|
||||
|
@ -38,11 +50,22 @@ return array(
|
|||
// The Facebook "Application Secret" to use for Facebook API access.
|
||||
'facebook.application-secret' => null,
|
||||
|
||||
|
||||
|
||||
// -- Recaptcha ------------------------------------------------------------- //
|
||||
|
||||
// Is Recaptcha enabled? If disabled, captchas will not appear.
|
||||
'recaptcha.enabled' => false,
|
||||
|
||||
// Your Recaptcha public key, obtained from Recaptcha.
|
||||
'recaptcha.public-key' => null,
|
||||
|
||||
// Your Recaptcha private key, obtained from Recaptcha.
|
||||
'recaptcha.private-key' => null,
|
||||
|
||||
|
||||
'user.default-profile-image-phid' => 'PHID-FILE-f57aaefce707fc4060ef',
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
|
|
@ -22,9 +22,9 @@ abstract class PhabricatorLiskDAO extends LiskDAO {
|
|||
public function establishConnection($mode) {
|
||||
return new AphrontMySQLDatabaseConnection(
|
||||
array(
|
||||
'user' => 'root',
|
||||
'pass' => '',
|
||||
'host' => 'localhost',
|
||||
'user' => PhabricatorEnv::getEnvConfig('mysql.user'),
|
||||
'pass' => PhabricatorEnv::getEnvConfig('mysql.pass'),
|
||||
'host' => PhabricatorEnv::getEnvConfig('mysql.host'),
|
||||
'database' => 'phabricator_'.$this->getApplicationName(),
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue