Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorClusterConfigOptions.php
Show All 28 Lines | |||||
it can monitor database health, spread load, and degrade gracefully to | it can monitor database health, spread load, and degrade gracefully to | ||||
read-only mode in the event of a failure on the primary host. For help with | read-only mode in the event of a failure on the primary host. For help with | ||||
configuring cluster databases, see **[[ %s | %s ]]** in the documentation. | configuring cluster databases, see **[[ %s | %s ]]** in the documentation. | ||||
EOTEXT | EOTEXT | ||||
, | , | ||||
PhabricatorEnv::getDoclink('Cluster: Databases'), | PhabricatorEnv::getDoclink('Cluster: Databases'), | ||||
pht('Cluster: Databases'))); | pht('Cluster: Databases'))); | ||||
$intro_href = PhabricatorEnv::getDoclink('Clustering Introduction'); | |||||
$intro_name = pht('Clustering Introduction'); | |||||
return array( | return array( | ||||
$this->newOption('cluster.addresses', 'list<string>', array()) | $this->newOption('cluster.addresses', 'list<string>', array()) | ||||
->setLocked(true) | ->setLocked(true) | ||||
->setSummary(pht('Address ranges of cluster hosts.')) | ->setSummary(pht('Address ranges of cluster hosts.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'To allow Phabricator nodes to communicate with other nodes '. | 'Define a Phabricator cluster by providing a whitelist of host '. | ||||
'in the cluster, provide an address whitelist of hosts that '. | 'addresses that are part of the cluster.'. | ||||
'are part of the cluster.'. | |||||
"\n\n". | "\n\n". | ||||
'Hosts on this whitelist are permitted to use special cluster '. | 'Hosts on this whitelist have special powers. These hosts are '. | ||||
'mechanisms to authenticate requests. By default, these '. | 'permitted to bend security rules, and misconfiguring this list '. | ||||
'mechanisms are disabled.'. | 'can make your install less secure. For more information, '. | ||||
'see **[[ %s | %s ]]**.'. | |||||
"\n\n". | "\n\n". | ||||
'Define a list of CIDR blocks which whitelist all hosts in the '. | 'Define a list of CIDR blocks which whitelist all hosts in the '. | ||||
'cluster. See the examples below for details.', | 'cluster and no additional hosts. See the examples below for '. | ||||
'details.'. | |||||
"\n\n". | "\n\n". | ||||
'When cluster addresses are defined, Phabricator hosts will also '. | 'When cluster addresses are defined, Phabricator hosts will also '. | ||||
'reject requests to interfaces which are not whitelisted.')) | 'reject requests to interfaces which are not whitelisted.', | ||||
$intro_href, | |||||
$intro_name)) | |||||
->addExample( | ->addExample( | ||||
array( | array( | ||||
'23.24.25.80/32', | '23.24.25.80/32', | ||||
'23.24.25.81/32', | '23.24.25.81/32', | ||||
), | ), | ||||
pht('Whitelist Specific Addresses')) | pht('Whitelist Specific Addresses')) | ||||
->addExample( | ->addExample( | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |