2021-07-13 12:34:51 -07:00
|
|
|
/*
|
|
|
|
|
This file is used to store unsecure, application-specific data common to all
|
|
|
|
|
environments.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* eslint no-unneeded-ternary:0 */
|
|
|
|
|
|
2021-08-03 13:05:45 -07:00
|
|
|
// Get the version from the package.json file.
|
|
|
|
|
const pkgInfo = require('../../package.json')
|
|
|
|
|
const version = pkgInfo.version
|
|
|
|
|
|
2021-07-17 16:19:03 -07:00
|
|
|
const ipfsCoordName = process.env.COORD_NAME
|
|
|
|
|
? process.env.COORD_NAME
|
|
|
|
|
: 'ipfs-bch-wallet-service'
|
|
|
|
|
|
2021-07-13 12:34:51 -07:00
|
|
|
module.exports = {
|
|
|
|
|
// Configure TCP port.
|
|
|
|
|
port: process.env.PORT || 5001,
|
|
|
|
|
|
|
|
|
|
// Password for HTML UI that displays logs.
|
|
|
|
|
logPass: 'test',
|
|
|
|
|
|
|
|
|
|
// Email server settings if nodemailer email notifications are used.
|
2021-07-13 18:35:08 -07:00
|
|
|
emailServer: process.env.EMAILSERVER
|
|
|
|
|
? process.env.EMAILSERVER
|
|
|
|
|
: 'mail.someserver.com',
|
|
|
|
|
emailUser: process.env.EMAILUSER
|
|
|
|
|
? process.env.EMAILUSER
|
|
|
|
|
: 'noreply@someserver.com',
|
|
|
|
|
emailPassword: process.env.EMAILPASS
|
|
|
|
|
? process.env.EMAILPASS
|
|
|
|
|
: 'emailpassword',
|
2021-07-13 12:34:51 -07:00
|
|
|
|
2021-07-16 17:26:51 -07:00
|
|
|
// FullStack.cash account information, used for automatic JWT handling.
|
|
|
|
|
AUTHSERVER: process.env.AUTHSERVER
|
|
|
|
|
? process.env.AUTHSERVER
|
|
|
|
|
: 'https://auth.fullstack.cash',
|
|
|
|
|
APISERVER: process.env.APISERVER
|
|
|
|
|
? process.env.APISERVER
|
|
|
|
|
: 'https://api.fullstack.cash/v5/',
|
|
|
|
|
FULLSTACKLOGIN: process.env.FULLSTACKLOGIN
|
|
|
|
|
? process.env.FULLSTACKLOGIN
|
|
|
|
|
: 'demo@demo.com',
|
|
|
|
|
FULLSTACKPASS: process.env.FULLSTACKPASS ? process.env.FULLSTACKPASS : 'demo',
|
|
|
|
|
|
2021-07-13 12:34:51 -07:00
|
|
|
// IPFS settings.
|
|
|
|
|
isCircuitRelay: process.env.ENABLE_CIRCUIT_RELAY ? true : false,
|
|
|
|
|
|
|
|
|
|
// Information passed to other IPFS peers about this node.
|
2021-07-17 19:14:11 -07:00
|
|
|
apiInfo: 'https://ipfs-bch-wallet-service.fullstack.cash/',
|
2021-07-13 12:34:51 -07:00
|
|
|
|
2021-07-17 16:19:03 -07:00
|
|
|
ipfsCoordName: ipfsCoordName,
|
|
|
|
|
|
2021-07-13 12:34:51 -07:00
|
|
|
// JSON-LD and Schema.org schema with info about this app.
|
|
|
|
|
announceJsonLd: {
|
|
|
|
|
'@context': 'https://schema.org/',
|
|
|
|
|
'@type': 'WebAPI',
|
2021-07-17 16:19:03 -07:00
|
|
|
name: ipfsCoordName,
|
2021-08-03 13:05:45 -07:00
|
|
|
version,
|
2021-07-13 18:35:08 -07:00
|
|
|
description:
|
|
|
|
|
'IPFS service providing BCH blockchain access needed by a wallet.',
|
|
|
|
|
documentation: 'https://ipfs-bch-wallet-service.fullstack.cash/',
|
2021-07-13 12:34:51 -07:00
|
|
|
provider: {
|
|
|
|
|
'@type': 'Organization',
|
|
|
|
|
name: 'Permissionless Software Foundation',
|
|
|
|
|
url: 'https://PSFoundation.cash'
|
|
|
|
|
}
|
2021-07-17 10:54:00 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// IPFS Ports
|
|
|
|
|
ipfsTcpPort: process.env.IPFS_TCP_PORT ? process.env.IPFS_TCP_PORT : 5668,
|
|
|
|
|
ipfsWsPort: process.env.IPFS_WS_PORT ? process.env.IPFS_WS_PORT : 5669
|
2021-07-13 12:34:51 -07:00
|
|
|
}
|