0.0.9 • Published 3 years ago

gh-did-api-web3 v0.0.9

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
3 years ago

Note - Use Nodejs 10

Firebase Cloud Functions for GitHub DID

Local API Docs
Local API Docs

Setting Environment Variables

firebase functions:config:set github_did.env=production
firebase functions:config:set github_did.commit=$(git log -1 --format="%H")

.runtimeconfig.json

Set RUNTIME_CONFIG_PASSWORD in travis.

Be sure not build PRs, only pushed branches. Make sure you don't merge a PR that exfiltrates RUNTIME_CONFIG_PASSWORD.

See:

Encrypting

openssl enc -aes-256-cbc -in .runtimeconfig.json -out .runtimeconfig.json.enc -pass file:<( echo -n "$RUNTIME_CONFIG_PASSWORD" )

Decrypting

openssl enc -d -aes-256-cbc -in .runtimeconfig.json.enc -out .runtimeconfig.json -pass file:<( echo -n "$RUNTIME_CONFIG_PASSWORD" )