Merge pull request #10 from thewillhuang/master
use default amazon env variables
This commit is contained in:
@@ -17,8 +17,8 @@ You can configure this plugin in `_config.yml`.
|
|||||||
deploy:
|
deploy:
|
||||||
type: s3
|
type: s3
|
||||||
bucket: <S3 bucket>
|
bucket: <S3 bucket>
|
||||||
aws_key: <AWS id key> // Optional, if the environment variable `AWS_KEY` is set
|
aws_key: <AWS id key> // Optional, if the environment variable `AWS_ACCESS_KEY_ID` is set
|
||||||
aws_secret: <AWS secret key> // Optional, if the environment variable `AWS_SECRET` is set
|
aws_secret: <AWS secret key> // Optional, if the environment variable `AWS_SECRET_ACCESS_KEY` is set
|
||||||
concurrency: <number of connections> // Optional
|
concurrency: <number of connections> // Optional
|
||||||
region: <region> // Optional, see https://github.com/LearnBoost/knox#region
|
region: <region> // Optional, see https://github.com/LearnBoost/knox#region
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ module.exports = function(args) {
|
|||||||
var config = {
|
var config = {
|
||||||
maxAsyncS3: args.concurrency,
|
maxAsyncS3: args.concurrency,
|
||||||
s3Options: {
|
s3Options: {
|
||||||
accessKeyId: args.aws_key || process.env.AWS_KEY,
|
accessKeyId: args.aws_key || process.env.AWS_ACCESS_KEY_ID || process.env.AWS_KEY,
|
||||||
secretAccessKey: args.aws_secret || process.env.AWS_SECRET,
|
secretAccessKey: args.aws_secret || process.env.AWS_SECRET_ACCESS_KEY || process.env.AWS_SECRET,
|
||||||
region: args.region
|
region: args.region
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user