import { env } from '@extollo/lib' import * as fs from "fs" export default { name: env('APP_NAME', 'Extollo'), gpg: { key: { // Contents of the SERVER's GPG public key, armored. public: fs.readFileSync(env('GPG_KEY_PUB')).toString('utf-8'), // Contents of the SERVER's GPG private key, armored. private: fs.readFileSync(env('GPG_KEY_PRIV')).toString('utf-8'), }, }, firebase: { // Contents of the Firebase service account credentials file. credentials: JSON.parse( fs.readFileSync(env('FIREBASE_CREDENTIALS')) .toString('utf-8') ), // Name of the HTTP header to check for the firebase auth token api_auth_header: env('FIREBASE_API_AUTH_HEADER', 'X-Auth-Token'), rtdb: { // URL of the realtime-database this app should use default: env('FIREBASE_DEFAULT_RTDB', 'https://loc-chain-default-rtdb.firebaseio.com'), // Mapping of ref-shortname to actual database reference // If you add a value here, also add it to the RTDBRef type alias refs: { peers: 'chain/server/peers', transaction: 'chain/pending/transactions', block: 'chain/local/block', }, }, } }