Page MenuHomePhabricator
Paste P1791

Instance Config
ActivePublic

Authored by epriestley on May 27 2015, 6:40 PM.
Tags
None
Referenced Files
F442077: Instance Config
May 27 2015, 6:40 PM
Subscribers
None
$config = array(
'cluster.instance' => $instance,
'repository.default-local-path' => $core.'/repo/'.$instance,
'phd.pid-directory' => $core.'/run/'.$instance.'/phd',
'phd.log-directory' => $core.'/log/'.$instance.'/phd',
'storage.default-namespace' => $instance,
'phabricator.cache-namespace' => $instance,
'phabricator.cookie-prefix' => $instance,
$notify_client_uri = "https://{$notification_lb}:443/{$instance}/";
$notify_server_uri = "http://{$notification_host}:22281/";
$config['notification.enabled'] = true;
$config['notification.client-uri'] = $notify_client_uri;
$config['notification.server-uri'] = $notify_server_uri;
$config['diffusion.ssh-user'] = $instance;
$config['diffusion.ssh-host'] = 'vault.phacility.com';
$cloudfront_key = $instance.'.phacility.com';
if (isset($cloudfront_domains[$cloudfront_key])) {
$cloudfront_domain = $cloudfront_domains[$cloudfront_key];
} else {
$cloudfront_domain = $cloudfront_default;
}
$cloudfront_uri = 'https://'.$cloudfront_domain.'/';
$config['security.alternate-file-domain'] = $cloudfront_uri;
$mysql_user = PhacilityCore::getMySQLUserForRole($mysql_role, $instance);
$mysql_pass = PhacilityCore::getMySQLPasswordForRole($mysql_role);
$config['mysql.user'] = $mysql_user;
$config['mysql.pass'] = $mysql_pass;

Event Timeline

epriestley changed the title of this paste from untitled to Instance Config.
epriestley updated the paste's language from autodetect to autodetect.