|
@ -2,8 +2,6 @@ |
|
|
|
|
|
|
|
|
'use strict'; |
|
|
'use strict'; |
|
|
|
|
|
|
|
|
require('dotenv').config(); |
|
|
|
|
|
|
|
|
|
|
|
var express = require('express'); |
|
|
var express = require('express'); |
|
|
var path = require('path'); |
|
|
var path = require('path'); |
|
|
var favicon = require('serve-favicon'); |
|
|
var favicon = require('serve-favicon'); |
|
@ -24,6 +22,8 @@ var coreApi = require("./app/api/coreApi.js"); |
|
|
var coins = require("./app/coins.js"); |
|
|
var coins = require("./app/coins.js"); |
|
|
var request = require("request"); |
|
|
var request = require("request"); |
|
|
var qrcode = require("qrcode"); |
|
|
var qrcode = require("qrcode"); |
|
|
|
|
|
var dotenv = require("dotenv"); |
|
|
|
|
|
var os = require('os'); |
|
|
var fs = require('fs'); |
|
|
var fs = require('fs'); |
|
|
var electrumApi = require("./app/api/electrumApi.js"); |
|
|
var electrumApi = require("./app/api/electrumApi.js"); |
|
|
var Influx = require("influx"); |
|
|
var Influx = require("influx"); |
|
@ -32,6 +32,11 @@ var auth = require('./app/auth.js'); |
|
|
|
|
|
|
|
|
var crawlerBotUserAgentStrings = [ "Googlebot", "Bingbot", "Slurp", "DuckDuckBot", "Baiduspider", "YandexBot", "Sogou", "Exabot", "facebot", "ia_archiver" ]; |
|
|
var crawlerBotUserAgentStrings = [ "Googlebot", "Bingbot", "Slurp", "DuckDuckBot", "Baiduspider", "YandexBot", "Sogou", "Exabot", "facebot", "ia_archiver" ]; |
|
|
|
|
|
|
|
|
|
|
|
var configPaths = [ path.join(os.homedir(), '.config', 'btc-rpc-explorer.env'), path.join(process.cwd(), '.env') ]; |
|
|
|
|
|
configPaths.filter(fs.existsSync).forEach(path => { |
|
|
|
|
|
console.log('Loading env file:', path); |
|
|
|
|
|
dotenv.config({ path }); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
var baseActionsRouter = require('./routes/baseActionsRouter'); |
|
|
var baseActionsRouter = require('./routes/baseActionsRouter'); |
|
|
|
|
|
|
|
|