UNPKG

insight-tcr

Version:

A blockchain explorer for Bitcore

39 lines (37 loc) 715 B
/** * To run against a local bitcore-node, create a `proxy.conf.override.js` in * this directory (as a sibling to this file), with your configuration, e.g.: * * ``` * module.exports = { * '/api': { * target: { * host: 'localhost', * protocol: 'http', * port: 3000 * }, * secure: false, * changeOrigin: true, * logLevel: 'debug' * } * }; * ``` */ let config; try { config = require("./proxy.conf.override"); } catch (err) { config = { '/api': { target: { host: 'api.bitcore.io', protocol: 'https:', port: 443 }, secure: false, changeOrigin: true, logLevel: 'debug' } }; } module.exports = config;