Allow the user of Environment Variables

Instead of storing sensitive information in your hexo config, you can instead set environment variables for your S3 configuration.

Requires that the environment variables `AWS_KEY` and `AWS_SECRET` be set.
This commit is contained in:
Nicholas Terwoord
2014-09-01 18:55:30 -04:00
parent 74e7a6e5c1
commit f6cb56397a
2 changed files with 7 additions and 5 deletions

View File

@@ -27,8 +27,8 @@ Add `bucket`, `aws_key` and `aws_secret` to `deploy` in `_config.yml`.
deploy:
type: s3
bucket: <S3 bucket>
aws_key: <AWS id key>
aws_secret: <AWS secret key>
aws_key: <AWS id key> //Optional, if the environment variable `AWS_KEY` is set
aws_secret: <AWS secret key> //Optional, if the environment variable `AWS_SECRET` is set
concurrency: <number of connections> //Optional
region: <region> //Optional, see https://github.com/LearnBoost/knox#region
```