Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5518992
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
amckinley
Apr 11 2018, 7:04 PM
2018-04-11 19:04:20 (UTC+0)
Size
895 B
Referenced Files
None
Subscribers
None
View Options
/**
* @phutil-external-symbol class PhabricatorEnv
**/
protected function newConduitClient() {
$key_path = $this->getPath('conf/keystore/client.key');
$pub_path = $this->getPath('conf/keystore/client.pub');
$private_key = Filesystem::readFile($key_path);
$private_key = new PhutilOpaqueEnvelope($private_key);
$public_key = Filesystem::readFile($pub_path);
if ($this->getHostAttribute('role') == 'local') {
// Modify the configured base URI so that we respect the port and
// protocol if they're set up in an unusual way.
$admin_uri = PhabricatorEnv::getEnvConfig('phabricator.base-uri');
$admin_uri = new PhutilURI($base_uri);
$admin_uri = (string)$base_uri;
} else {
$admin_uri = 'https://admin.phacility.com/';
}
return id(new ConduitClient($admin_uri))
->setSigningKeys($public_key, $private_key);
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
1001031
Default Alt Text
(895 B)
Attached To
Mode
P2090 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment