Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F452558
PhabricatorClusterConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
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'
)),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:45 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68763
Default Alt Text
PhabricatorClusterConfigOptions.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment