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
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
2013-01-16 19:52:09 +01:00
|
|
|
->setMasked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Secret key for Amazon SES.')),
|
|
|
|
$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)
|
2013-01-16 19:52:09 +01:00
|
|
|
->setMasked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Secret key for Amazon S3.')),
|
|
|
|
$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(
|
|
|
|
'Explicit S3 endpoint to use. Leave empty to have Phabricator '.
|
|
|
|
'select and endpoint. Normally, you do not need to set this.'))
|
|
|
|
->addExample(null, 'Use default endpoint')
|
|
|
|
->addExample('s3.amazon.com', 'Use specific endpoint'),
|
|
|
|
$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)
|
2013-01-16 19:52:09 +01:00
|
|
|
->setMasked(true)
|
2013-01-01 23:09:29 +01:00
|
|
|
->setDescription(pht('Secret key for Amazon EC2.')),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|