2013-01-01 23:09:29 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorAWSConfigOptions
|
|
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
|
|
|
|
public function getName() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Amazon Web Services');
|
2013-01-01 23:09:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Configure integration with AWS (EC2, SES, S3, etc).');
|
2013-01-01 23:09:29 +01:00
|
|
|
}
|
|
|
|
|
2016-01-28 17:40:22 +01:00
|
|
|
public function getIcon() {
|
2015-02-02 19:17:25 +01:00
|
|
|
return 'fa-server';
|
|
|
|
}
|
|
|
|
|
2015-02-09 22:10:56 +01:00
|
|
|
public function getGroup() {
|
|
|
|
return 'core';
|
|
|
|
}
|
|
|
|
|
2013-01-01 23:09:29 +01:00
|
|
|
public function getOptions() {
|
|
|
|
return array(
|
|
|
|
$this->newOption('amazon-ses.access-key', 'string', null)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Access key for Amazon SES.')),
|
|
|
|
$this->newOption('amazon-ses.secret-key', 'string', null)
|
2015-02-13 19:59:50 +01:00
|
|
|
->setHidden(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Secret key for Amazon SES.')),
|
2016-03-23 20:16:31 +01:00
|
|
|
$this->newOption('amazon-ses.endpoint', 'string', null)
|
|
|
|
->setLocked(true)
|
|
|
|
->setDescription(
|
|
|
|
pht(
|
|
|
|
'SES endpoint domain name. You can find a list of available '.
|
|
|
|
'regions and endpoints in the AWS documentation.'))
|
|
|
|
->addExample(
|
|
|
|
'email.us-east-1.amazonaws.com',
|
|
|
|
pht('US East (N. Virginia, Older default endpoint)'))
|
|
|
|
->addExample(
|
|
|
|
'email.us-west-2.amazonaws.com',
|
|
|
|
pht('US West (Oregon)')),
|
2013-01-01 23:09:29 +01:00
|
|
|
$this->newOption('amazon-s3.access-key', 'string', null)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Access key for Amazon S3.')),
|
|
|
|
$this->newOption('amazon-s3.secret-key', 'string', null)
|
2015-02-13 19:59:50 +01:00
|
|
|
->setHidden(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Secret key for Amazon S3.')),
|
2016-01-09 21:43:04 +01:00
|
|
|
$this->newOption('amazon-s3.region', 'string', null)
|
|
|
|
->setLocked(true)
|
|
|
|
->setDescription(
|
|
|
|
pht(
|
|
|
|
'Amazon S3 region where your S3 bucket is located. When you '.
|
|
|
|
'specify a region, you should also specify a corresponding '.
|
|
|
|
'endpoint with `amazon-s3.endpoint`. You can find a list of '.
|
|
|
|
'available regions and endpoints in the AWS documentation.'))
|
|
|
|
->addExample('us-west-1', pht('USWest Region')),
|
2013-01-01 23:09:29 +01:00
|
|
|
$this->newOption('amazon-s3.endpoint', 'string', null)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(
|
|
|
|
pht(
|
2016-01-09 21:43:04 +01:00
|
|
|
'Explicit S3 endpoint to use. This should be the endpoint '.
|
|
|
|
'which corresponds to the region you have selected in '.
|
|
|
|
'`amazon-s3.region`. Phabricator can not determine the correct '.
|
|
|
|
'endpoint automatically because some endpoint locations are '.
|
|
|
|
'irregular.'))
|
|
|
|
->addExample(
|
|
|
|
's3-us-west-1.amazonaws.com',
|
|
|
|
pht('Use specific endpoint')),
|
2013-01-01 23:09:29 +01:00
|
|
|
$this->newOption('amazon-ec2.access-key', 'string', null)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Access key for Amazon EC2.')),
|
|
|
|
$this->newOption('amazon-ec2.secret-key', 'string', null)
|
2015-02-13 19:59:50 +01:00
|
|
|
->setHidden(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Secret key for Amazon EC2.')),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|