2022-02-23 05:51:12 -08:00
/*
This file is used to store unsecure, application-specific data common to all
environments.
*/
/* eslint no-unneeded-ternary:0 */
// Get the version from the package.json file.
const pkgInfo = require ( '../../package.json' )
const version = pkgInfo . version
const ipfsCoordName = process . env . COORD_NAME
? process . env . COORD_NAME
: 'ipfs-torlist-service-generic'
module . exports = {
// Configure TCP port.
2022-03-01 18:36:15 -08:00
port : process . env . PORT || 5700 ,
2022-02-23 05:51:12 -08:00
// Password for HTML UI that displays logs.
logPass : 'test' ,
// Email server settings if nodemailer email notifications are used.
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' ,
2022-02-23 09:21:23 -08:00
// PSF Web 3 community infrastructure
useFullStackCash : process . env . USE_FULLSTACKCASH ? true : false ,
consumerUrl : process . env . CONSUMER_URL
? process . env . CONSUMER_URL
2022-05-01 13:13:59 -07:00
: 'https://free-bch.fullstack.cash' ,
// : 'https://wa-usa-bch-consumer.fullstackcash.nl',
2022-02-23 09:21:23 -08:00
2022-03-09 07:53:26 -08:00
// P2WDB URL that will accept API calls from the p2wdb npm library.
p2wdbUrl : process . env . P2WDB_URL ? process . env . P2WDB_URL : 'https://p2wdb.fullstack.cash' ,
2022-02-23 05:51:12 -08:00
// FullStack.cash account information, used for automatic JWT handling.
getJwtAtStartup : process . env . GET_JWT_AT_STARTUP ? true : false ,
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' ,
fullstackPassword : process . env . FULLSTACKPASS
? process . env . FULLSTACKPASS
: 'demo' ,
// IPFS settings.
isCircuitRelay : process . env . ENABLE_CIRCUIT_RELAY ? true : false ,
// SSL domain used for websocket connection via browsers.
crDomain : process . env . CR_DOMAIN ? process . env . CR_DOMAIN : '' ,
// Information passed to other IPFS peers about this node.
apiInfo : 'https://ipfs-service-provider.fullstack.cash/' ,
// JSON-LD and Schema.org schema with info about this app.
announceJsonLd : {
'@context' : 'https://schema.org/' ,
'@type' : 'WebAPI' ,
name : ipfsCoordName ,
version ,
protocol : 'generic-service' ,
2022-03-09 07:53:26 -08:00
description : 'This is a generic IPFS Serivice Provider that uses JSON RPC over IPFS to communicate with it. This instance has not been customized. Source code: https://github.com/Permissionless-Software-Foundation/ipfs-service-provider' ,
2022-02-23 05:51:12 -08:00
documentation : 'https://ipfs-service-provider.fullstack.cash/' ,
provider : {
'@type' : 'Organization' ,
name : 'Permissionless Software Foundation' ,
url : 'https://PSFoundation.cash'
}
},
// P2WDB webhook endpoint
2022-02-23 14:03:57 -08:00
p2wdbPort : process . env . P2WDB_PORT ? process . env . P2WDB_PORT : 5010 ,
2022-02-23 05:51:12 -08:00
webhookService : process . env . WEBHOOKSERVICE
? process . env . WEBHOOKSERVICE
2022-02-23 08:38:16 -08:00
: 'http://localhost:5010/webhook' , // P2WDB.
2022-03-26 08:25:43 -07:00
p2wdbAppId : process . env . APP_ID ? process . env . APP_ID : 'bch-dex-test557' ,
2022-03-26 07:32:00 -07:00
webhookTarget : process . env . WEBHOOKTARGET
? process . env . WEBHOOKTARGET
2022-03-31 18:04:13 -07:00
: 'http://localhost:5700/p2wdb' ,
2022-02-23 05:51:12 -08:00
// IPFS Ports
ipfsTcpPort : process . env . IPFS_TCP_PORT ? process . env . IPFS_TCP_PORT : 4001 ,
ipfsWsPort : process . env . IPFS_WS_PORT ? process . env . IPFS_WS_PORT : 4003 ,
// BCH Mnemonic for generating encryption keys and payment address
mnemonic : process . env . MNEMONIC ? process . env . MNEMONIC : '' ,
2022-05-09 09:33:39 -07:00
debugLevel : process . env . DEBUG_LEVEL ? parseInt ( process . env . DEBUG_LEVEL ) : 1 ,
2021-12-29 17:28:35 -08:00
// Settings for production, using external go-ipfs node.
isProduction : process . env . SVC_ENV === 'production' ? true : false ,
ipfsHost : process . env . IPFS_HOST ? process . env . IPFS_HOST : 'localhost' ,
ipfsApiPort : process . env . IPFS_API_PORT
? parseInt ( process . env . IPFS_API_PORT )
: 5001
2022-02-23 05:51:12 -08:00
}