mirror of
https://github.com/hackku21/loc-chain-backend.git
synced 2024-10-27 20:34:03 +00:00
Add config passthrough for GPG keys
This commit is contained in:
parent
29f9fe9f1f
commit
27e161ed44
@ -3,3 +3,6 @@ EXTOLLO_LOGGING_LEVEL=6
|
|||||||
DATABASE_PASSWORD=extollo
|
DATABASE_PASSWORD=extollo
|
||||||
DATABASE_HOST=db01.platform.local
|
DATABASE_HOST=db01.platform.local
|
||||||
FIREBASE_CREDENTIALS=/home/USER/firebase.json
|
FIREBASE_CREDENTIALS=/home/USER/firebase.json
|
||||||
|
|
||||||
|
GPG_KEY_PUB=public.gpg.key
|
||||||
|
GPG_KEY_PRIV=private.gpg.key
|
||||||
|
@ -4,6 +4,13 @@ import * as fs from "fs"
|
|||||||
export default {
|
export default {
|
||||||
name: env('APP_NAME', 'Extollo'),
|
name: env('APP_NAME', 'Extollo'),
|
||||||
|
|
||||||
|
gpg: {
|
||||||
|
key: {
|
||||||
|
public: fs.readFileSync(env('GPG_KEY_PUB')).toString('utf-8'),
|
||||||
|
private: fs.readFileSync(env('GPG_KEY_PRIV')).toString('utf-8'),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
firebase: {
|
firebase: {
|
||||||
credentials: JSON.parse(
|
credentials: JSON.parse(
|
||||||
fs.readFileSync(env('FIREBASE_CREDENTIALS'))
|
fs.readFileSync(env('FIREBASE_CREDENTIALS'))
|
||||||
|
@ -7,6 +7,7 @@ import * as crypto from "crypto"
|
|||||||
import {collect} from "@extollo/util";
|
import {collect} from "@extollo/util";
|
||||||
|
|
||||||
export class Block implements BlockResourceItem {
|
export class Block implements BlockResourceItem {
|
||||||
|
firebaseID: string;
|
||||||
seqID: number;
|
seqID: number;
|
||||||
uuid: string;
|
uuid: string;
|
||||||
combinedHash: string;
|
combinedHash: string;
|
||||||
@ -17,6 +18,7 @@ export class Block implements BlockResourceItem {
|
|||||||
lastBlockUUID: string;
|
lastBlockUUID: string;
|
||||||
|
|
||||||
constructor(rec: BlockResourceItem) {
|
constructor(rec: BlockResourceItem) {
|
||||||
|
this.firebaseID = rec.firebaseID;
|
||||||
this.seqID = rec.seqID
|
this.seqID = rec.seqID
|
||||||
this.uuid = rec.uuid
|
this.uuid = rec.uuid
|
||||||
this.combinedHash = rec.combinedHash
|
this.combinedHash = rec.combinedHash
|
||||||
|
Loading…
Reference in New Issue
Block a user