Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
fix(jwt-cert): add jwt-cert to serverless.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouncey committed Apr 25, 2018
1 parent 48b4f5c commit da72fba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions config/secrets.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
require('dotenv').config();

const { MONGODB_URL, GRAPHQL_ENDPOINT_URL } = process.env;
const { MONGODB_URL, GRAPHQL_ENDPOINT_URL, JWT_CERT } = process.env;

exports.getSecret = () => ({
MONGODB_URL,
GRAPHQL_ENDPOINT_URL
GRAPHQL_ENDPOINT_URL,
JWT_CERT,
MONGODB_URL
});
3 changes: 2 additions & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ provider:
stage: dev
region: us-east-1
environment:
MONGODB_URL: ${file(./config/secrets.js):getSecret.MONGODB_URL}
GRAPHQL_ENDPOINT_URL: ${file(./config/secrets.js):getSecret.GRAPHQL_ENDPOINT_URL}
JWT_CERT: ${file(./config/secrets.js):getSecret.JWT_CERT}
MONGODB_URL: ${file(./config/secrets.js):getSecret.MONGODB_URL}
iamRoleStatements:
- Effect: Allow
Action:
Expand Down

0 comments on commit da72fba

Please sign in to comment.