You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
856 B
32 lines
856 B
import { env } from '@extollo/lib'
|
|
import * as fs from "fs"
|
|
|
|
export default {
|
|
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: {
|
|
credentials: JSON.parse(
|
|
fs.readFileSync(env('FIREBASE_CREDENTIALS'))
|
|
.toString('utf-8')
|
|
),
|
|
|
|
api_auth_header: env('FIREBASE_API_AUTH_HEADER', 'X-Auth-Token'),
|
|
|
|
rtdb: {
|
|
default: env('FIREBASE_DEFAULT_RTDB', 'https://loc-chain-default-rtdb.firebaseio.com'),
|
|
refs: {
|
|
peers: 'chain/server/peers',
|
|
transaction: 'chain/pending/transactions',
|
|
block: 'chain/local/block',
|
|
},
|
|
},
|
|
}
|
|
}
|