Skip to content

Commit

Permalink
secret use env
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Sep 5, 2019
1 parent 3b37f51 commit c34bf68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/sts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ var pathLib = require('path');

// 配置参数
var config = {
secretId: 'AKIDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
secretKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
proxy: '',
secretId: process.env.SecretId,
secretKey: process.env.SecretKey,
proxy: process.env.Proxy,
durationSeconds: 1800,
bucket: 'test-1250000000',
region: 'ap-guangzhou',
bucket: process.env.Bucket,
region: process.env.Region,
allowPrefix: '_ALLOW_DIR_/*',
// 密钥的权限列表
allowActions: [
Expand Down

0 comments on commit c34bf68

Please sign in to comment.