Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorAWSConfigOptions.php
| Show All 27 Lines | return array( | ||||
| ->setHidden(true) | ->setHidden(true) | ||||
| ->setDescription(pht('Secret key for Amazon SES.')), | ->setDescription(pht('Secret key for Amazon SES.')), | ||||
| $this->newOption('amazon-s3.access-key', 'string', null) | $this->newOption('amazon-s3.access-key', 'string', null) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setDescription(pht('Access key for Amazon S3.')), | ->setDescription(pht('Access key for Amazon S3.')), | ||||
| $this->newOption('amazon-s3.secret-key', 'string', null) | $this->newOption('amazon-s3.secret-key', 'string', null) | ||||
| ->setHidden(true) | ->setHidden(true) | ||||
| ->setDescription(pht('Secret key for Amazon S3.')), | ->setDescription(pht('Secret key for Amazon S3.')), | ||||
| $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')), | |||||
| $this->newOption('amazon-s3.endpoint', 'string', null) | $this->newOption('amazon-s3.endpoint', 'string', null) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Explicit S3 endpoint to use. Leave empty to have Phabricator '. | 'Explicit S3 endpoint to use. This should be the endpoint '. | ||||
| 'select and endpoint. Normally, you do not need to set this.')) | 'which corresponds to the region you have selected in '. | ||||
| ->addExample(null, pht('Use default endpoint')) | '`amazon-s3.region`. Phabricator can not determine the correct '. | ||||
| ->addExample('s3.amazon.com', pht('Use specific endpoint')), | 'endpoint automatically because some endpoint locations are '. | ||||
| 'irregular.')) | |||||
| ->addExample( | |||||
| 's3-us-west-1.amazonaws.com', | |||||
| pht('Use specific endpoint')), | |||||
| $this->newOption('amazon-ec2.access-key', 'string', null) | $this->newOption('amazon-ec2.access-key', 'string', null) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setDescription(pht('Access key for Amazon EC2.')), | ->setDescription(pht('Access key for Amazon EC2.')), | ||||
| $this->newOption('amazon-ec2.secret-key', 'string', null) | $this->newOption('amazon-ec2.secret-key', 'string', null) | ||||
| ->setHidden(true) | ->setHidden(true) | ||||
| ->setDescription(pht('Secret key for Amazon EC2.')), | ->setDescription(pht('Secret key for Amazon EC2.')), | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||