0.0.9 • Published 3 years ago
gh-did-api-web3 v0.0.9
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:
- pull-requests-and-security-restrictions
- Please note that encrypted environment variables are not available for pull requests from forks.
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" )