UNPKG

@ducatus/ducatus-wallet-service-rev

Version:
99 lines 2.79 kB
var _a = process.env, MODE = _a.MODE, NODE_PROD_URL = _a.NODE_PROD_URL, NODE_DEV_URL = _a.NODE_DEV_URL, NODE_LOCAL_URL = _a.NODE_LOCAL_URL, EXCHANGER_LIVENET_URL = _a.EXCHANGER_LIVENET_URL, EXCHANGER_TESTNET_URL = _a.EXCHANGER_TESTNET_URL; var defaultMode = 'prod'; var mode = MODE || defaultMode; var node = { prod: NODE_PROD_URL || 'https://ducapi.rocknblock.io', dev: NODE_DEV_URL || 'http://localhost:3000', local: NODE_LOCAL_URL || 'http://localhost:3000' }; module.exports = { basePath: '/bws/api', disableLogs: false, port: 3232, productionMode: mode === 'prod', nodeUrl: node[mode], exchangerUrl: { livenet: EXCHANGER_LIVENET_URL || 'https://www.ducatuscoins.com', testnet: EXCHANGER_TESTNET_URL || 'https://devducatus.rocknblock.io' }, storageOpts: { mongoDb: { uri: 'mongodb://localhost:27017/bws' } }, messageBrokerOpts: { messageBrokerServer: { url: 'http://localhost:3380' } }, blockchainExplorerOpts: { duc: { livenet: { url: node[mode] }, testnet: { url: node[mode], regtestEnabled: false } }, ducx: { livenet: { url: node[mode] }, testnet: { url: node[mode] } }, btc: { livenet: { url: 'https://api.bitcore.io' }, testnet: { url: 'https://api.bitcore.io', regtestEnabled: false } }, bch: { livenet: { url: 'https://api.bitcore.io' }, testnet: { url: 'https://api.bitcore.io' } }, eth: { livenet: { url: 'https://api-eth.bitcore.io' }, testnet: { url: 'https://api-eth.bitcore.io' } }, xrp: { livenet: { url: 'https://api-xrp.bitcore.io' }, testnet: { url: 'https://api-xrp.bitcore.io' } }, socketApiKey: 'socketApiKey' }, pushNotificationsOpts: { templatePath: 'templates', defaultLanguage: 'en', defaultUnit: 'btc', subjectPrefix: '', pushServerUrl: 'https://fcm.googleapis.com/fcm', authorizationKey: 'You_have_to_put_something_here' }, fiatRateServiceOpts: { defaultProvider: 'BitPay', fetchInterval: 60 }, maintenanceOpts: { maintenanceMode: false }, staticRoot: '/tmp/static' }; //# sourceMappingURL=config.js.map