Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102671334
PhabricatorClusterConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 23, 02:28
Size
2 KB
Mime Type
text/x-php
Expires
Tue, Feb 25, 02:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24390774
Attached To
rPH Phabricator
PhabricatorClusterConfigOptions.php
View Options
<?php
final
class
PhabricatorClusterConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
'Cluster Setup'
);
}
public
function
getDescription
()
{
return
pht
(
'Configure Phabricator to run on a cluster of hosts.'
);
}
public
function
getFontIcon
()
{
return
'fa-sitemap'
;
}
public
function
getGroup
()
{
return
'core'
;
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'cluster.addresses'
,
'list<string>'
,
array
())
->
setLocked
(
true
)
->
setSummary
(
pht
(
'Address ranges of cluster hosts.'
))
->
setDescription
(
pht
(
'To allow Phabricator nodes to communicate with other nodes '
.
'in the cluster, provide an address whitelist of hosts that '
.
'are part of the cluster.'
.
"
\n\n
"
.
'Hosts on this whitelist are permitted to use special cluster '
.
'mechanisms to authenticate requests. By default, these '
.
'mechanisms are disabled.'
.
"
\n\n
"
.
'Define a list of CIDR blocks which whitelist all hosts in the '
.
'cluster. See the examples below for details.'
,
"
\n\n
"
.
'When cluster addresses are defined, Phabricator hosts will also '
.
'reject requests to interfaces which are not whitelisted.'
))
->
addExample
(
array
(
'23.24.25.80/32'
,
'23.24.25.81/32'
,
),
pht
(
'Whitelist Specific Addresses'
))
->
addExample
(
array
(
'1.2.3.0/24'
,
),
pht
(
'Whitelist 1.2.3.*'
))
->
addExample
(
array
(
'1.2.0.0/16'
,
),
pht
(
'Whitelist 1.2.*.*'
))
->
addExample
(
array
(
'0.0.0.0/0'
,
),
pht
(
'Allow Any Host (Insecure!)'
)),
$this
->
newOption
(
'cluster.instance'
,
'string'
,
null
)
->
setLocked
(
true
)
->
setSummary
(
pht
(
'Instance identifier for multi-tenant clusters.'
))
->
setDescription
(
pht
(
'WARNING: This is a very advanced option, and only useful for '
.
'hosting providers running multi-tenant clusters.'
.
"
\n\n
"
.
'If you provide an instance identifier here (normally by '
.
'injecting it with a `%s`), Phabricator will pass it to '
.
'subprocesses and commit hooks in the `%s` environmental variable.'
,
'PhabricatorConfigSiteSource'
,
'PHABRICATOR_INSTANCE'
)),
);
}
}
Event Timeline
Log In to Comment