-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3 Feat: implement pandwidth provider logic
- Loading branch information
1 parent
09eb4ad
commit 3f28a02
Showing
4 changed files
with
87 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ db | |
.env | ||
.vscode | ||
test.js | ||
.npmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
const env = process.env; | ||
|
||
if (!env.CMN_PROVIDER_WIF) { | ||
throw new Error('Env variable CMN_PROVIDER_WIF is required!'); | ||
} | ||
|
||
if (!env.CMN_PROVIDER_USERNAME) { | ||
throw new Error('Env variable CMN_PROVIDER_USERNAME is required!'); | ||
} | ||
|
||
if (!env.CMN_CYBERWAY_HTTP_URL) { | ||
throw new Error('Env variable CMN_CYBERWAY_HTTP_URL is required!'); | ||
} | ||
module.exports = { | ||
GLS_CONNECTOR_HOST: env.GLS_CONNECTOR_HOST || '127.0.0.0', | ||
GLS_CONNECTOR_PORT: env.GLS_CONNECTOR_PORT || 3000, | ||
GLS_PROVIDER_WIF: env.GLS_PROVIDER_WIF, | ||
GLS_PROVIDER_USERNAME: env.GLS_PROVIDER_USERNAME, | ||
CMN_PROVIDER_WIF: env.CMN_PROVIDER_WIF, | ||
CMN_PROVIDER_USERNAME: env.CMN_PROVIDER_USERNAME, | ||
CMN_PROVIDER_PUBLIC_KEY: env.CMN_PROVIDER_PUBLIC_KEY, | ||
GLS_CHANNEL_TTL: env.GLS_CHANNEL_TTL || 1000, | ||
CMN_CYBERWAY_HTTP_URL: env.CMN_CYBERWAY_HTTP_URL, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters