diff --git a/README.md b/README.md index 445e967..faf4974 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ deploy: aws_key: aws_secret: concurrency: //Optional + region: //Optional, see https://github.com/LearnBoost/knox#region ``` ### Disable @@ -57,4 +58,4 @@ Execute the following command. Don't forget to disable the plugin before uninsta npm uninstall hexo-deployer-s3 ``` -[Hexo]: http://zespia.tw/hexo \ No newline at end of file +[Hexo]: http://zespia.tw/hexo diff --git a/index.js b/index.js index 2752f01..cf4e801 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,7 @@ hexo.extend.deployer.register('s3', function (args, callback) { ' aws_key: ', ' aws_secret: ', ' [concurrency]: ', + ' [region]: # See https://github.com/LearnBoost/knox#region', '', 'For more help, you can check the docs: ' + 'https://github.com/joshstrange/hexo-deployer-s3' ]; @@ -47,6 +48,7 @@ hexo.extend.deployer.register('s3', function (args, callback) { , secret: config.aws_secret , bucket: config.bucket , concurrency: config.concurrency + , region: config.region }).on('data', function(file) { console.log(file.fullPath + ' -> ' + file.url) }).on('end', function() {