2021-04-10 01:33:40 +00:00
|
|
|
import { env } from '@extollo/lib'
|
2021-04-10 02:26:57 +00:00
|
|
|
import * as fs from "fs"
|
2021-04-10 01:33:40 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: env('APP_NAME', 'Extollo'),
|
2021-04-10 02:26:57 +00:00
|
|
|
|
2021-04-10 07:56:18 +00:00
|
|
|
gpg: {
|
|
|
|
key: {
|
2021-04-10 12:26:42 +00:00
|
|
|
// Contents of the SERVER's GPG public key, armored.
|
2021-04-10 07:56:18 +00:00
|
|
|
public: fs.readFileSync(env('GPG_KEY_PUB')).toString('utf-8'),
|
2021-04-10 12:26:42 +00:00
|
|
|
|
|
|
|
// Contents of the SERVER's GPG private key, armored.
|
2021-04-10 07:56:18 +00:00
|
|
|
private: fs.readFileSync(env('GPG_KEY_PRIV')).toString('utf-8'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2021-04-10 02:26:57 +00:00
|
|
|
firebase: {
|
2021-04-10 12:26:42 +00:00
|
|
|
// Contents of the Firebase service account credentials file.
|
2021-04-10 02:26:57 +00:00
|
|
|
credentials: JSON.parse(
|
|
|
|
fs.readFileSync(env('FIREBASE_CREDENTIALS'))
|
|
|
|
.toString('utf-8')
|
|
|
|
),
|
|
|
|
|
2021-04-10 12:26:42 +00:00
|
|
|
// Name of the HTTP header to check for the firebase auth token
|
2021-04-10 05:47:05 +00:00
|
|
|
api_auth_header: env('FIREBASE_API_AUTH_HEADER', 'X-Auth-Token'),
|
|
|
|
|
|
|
|
rtdb: {
|
2021-04-10 12:26:42 +00:00
|
|
|
// URL of the realtime-database this app should use
|
2021-04-10 05:47:05 +00:00
|
|
|
default: env('FIREBASE_DEFAULT_RTDB', 'https://loc-chain-default-rtdb.firebaseio.com'),
|
2021-04-10 12:26:42 +00:00
|
|
|
|
|
|
|
// Mapping of ref-shortname to actual database reference
|
|
|
|
// If you add a value here, also add it to the RTDBRef type alias
|
2021-04-10 05:47:05 +00:00
|
|
|
refs: {
|
2021-04-10 14:00:45 +00:00
|
|
|
locks: 'server/locks', // Mutex-style locks for database refs
|
|
|
|
peers: 'server/peers', // Collection of federated peers
|
|
|
|
transaction: 'chain/pending/transactions', // List of pending encounter transactions
|
|
|
|
exposure: 'chain/pending/exposures', // List of pending exposure notifications
|
|
|
|
block: 'chain/block', // The blockchain itself
|
2021-04-10 05:47:05 +00:00
|
|
|
},
|
|
|
|
},
|
2021-04-10 02:26:57 +00:00
|
|
|
}
|
2021-04-10 01:33:40 +00:00
|
|
|
}
|