Make env vars more palatable for containerization (#10895)

* refactor(env-vars): remove object/colon syntax

* fix(tests): correct config expectations
This commit is contained in:
Sabe Jones
2018-12-06 10:13:49 -06:00
committed by GitHub
parent 18ab57eb91
commit f42e22b58f
25 changed files with 140 additions and 178 deletions

View File

@@ -10,10 +10,10 @@ import iap from 'in-app-purchase';
iap.config({
// This is the path to the directory containing iap-sanbox/iap-live files
googlePublicKeyPath: nconf.get('IAP_GOOGLE_KEYDIR'),
googleAccToken: nconf.get('PLAY_API:ACCESS_TOKEN'),
googleRefToken: nconf.get('PLAY_API:REFRESH_TOKEN'),
googleClientID: nconf.get('PLAY_API:CLIENT_ID'),
googleClientSecret: nconf.get('PLAY_API:CLIENT_SECRET'),
googleAccToken: nconf.get('PLAY_API_ACCESS_TOKEN'),
googleRefToken: nconf.get('PLAY_API_REFRESH_TOKEN'),
googleClientID: nconf.get('PLAY_API_CLIENT_ID'),
googleClientSecret: nconf.get('PLAY_API_CLIENT_SECRET'),
applePassword: nconf.get('ITUNES_SHARED_SECRET'),
});