Skip to content
Snippets Groups Projects
Commit 1db95c9a authored by Boyan Tsolov's avatar Boyan Tsolov
Browse files

chore: move configuration variables to env

parent 106d8f38
No related branches found
No related tags found
1 merge request!75feat: credential revocation
...@@ -37,3 +37,8 @@ PROOF_SERVICE_HOST=0.0.0.0 ...@@ -37,3 +37,8 @@ PROOF_SERVICE_HOST=0.0.0.0
ALLOWED_ORIGINS=* ALLOWED_ORIGINS=*
SWAGGER=false SWAGGER=false
TAILS_SERVER_BASE_URL=https://s3.us-west-000.backblazeb2.com
TAILS_SERVER_KEY=key
TAILS_SERVER_SECRET=secret
TAILS_SERVER_BUCKET_NAME=ssi-revocation-tails
\ No newline at end of file
...@@ -210,10 +210,19 @@ export const generateDidFromKey = (key: Key): string => { ...@@ -210,10 +210,19 @@ export const generateDidFromKey = (key: Key): string => {
//eslint-disable-next-line //eslint-disable-next-line
export const getAskarAnonCredsIndyModules = (networks: any) => { export const getAskarAnonCredsIndyModules = (networks: any) => {
const tailsServerBaseUrl = 'https://s3.us-west-000.backblazeb2.com'; const tailsServerBaseUrl = process.env["TAILS_SERVER_BASE_URL"] || undefined;
const s3AccessKey = '00035e7ca9a9853000000000d'; const s3AccessKey = process.env["TAILS_SERVER_KEY"] || undefined;
const s3Secret = 'K000e++ZchAncs27jCueO+P+M1UEN2Q'; const s3Secret = process.env["TAILS_SERVER_SECRET"] || undefined;
const tailsServerBucketName = 'ssi-revocation-tails'; const tailsServerBucketName = process.env["TAILS_SERVER_BUCKET_NAME"] || undefined;
if (
!tailsServerBaseUrl ||
!s3AccessKey ||
!s3Secret ||
!tailsServerBucketName
) {
throw new Error("Tails Storage Information not provided.");
}
return { return {
connections: new ConnectionsModule({ connections: new ConnectionsModule({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment