Last active
June 27, 2019 15:38
-
-
Save mhoangvslev/f3febb59d354ec7603e156017d41df05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
providers: { | |
timeout: 0, | |
infura: { | |
network: "mainnet", | |
projectId: "YOUR_PROJECT_ID" | |
}, | |
etherscan: { | |
network: 'homestead', | |
api: 'YOUR_API' | |
}, | |
jsonrpc: { | |
url: "YOUR_JSON_RPC_HOST", | |
username: "", | |
password: "", | |
allowInsecure: true | |
}, | |
web3: { | |
host: "" | |
}, | |
ipc: { | |
path: "", | |
network: "" | |
}, | |
default: { | |
network: "mainnet" | |
}, | |
logSizePerOp: 500 // Limit the number of log entries in order not to overwork the provider | |
}, | |
datavis: { | |
neovis: { | |
node: { | |
size: "size", | |
community: "community" | |
}, | |
relationship: { | |
thickness: "amount", | |
caption: false | |
}, | |
layout: { | |
improvedLayout: false, | |
hierarchical: { | |
enabled: false, | |
sortMethod: "hubsize" | |
} | |
}, | |
arrows: true | |
} | |
}, | |
database: { | |
neo4j: { | |
bolt: 'bolt://localhost:17687', | |
http: 'http://localhost:17474', | |
https: 'https://localhost:17473', | |
username: 'neo4j', | |
password: 'argosjs', | |
enterpriseMode: true, | |
driverConf: { | |
NEO4J_ENCRYPTED: 'ENCRYPTION_OFF', | |
NEO4J_TRUST: 'TRUST_ALL_CERTIFICATES', // # TRUST_ALL_CERTIFICATES, TRUST_ON_FIRST_USE, TRUST_SIGNED_CERTIFICATES, TRUST_CUSTOM_CA_SIGNED_CERTIFICATES, TRUST_SYSTEM_CA_SIGNED_CERTIFICATES | |
NEO4J_TRUSTED_CERTIFICATES: '', | |
NEO4J_KNOWN_HOSTS: '127.0.0.1', | |
NEO4J_MAX_CONNECTION_POOLSIZE: 1000, | |
NEO4J_MAX_TRANSACTION_RETRY_TIME: 5000, | |
NEO4J_LOAD_BALANCING_STRATEGY: 'least_connected', // least_connected or round_robin | |
NEO4J_MAX_CONNECTION_LIFETIME: 36000, | |
NEO4J_CONNECTION_TIMEOUT: 36000, | |
NEO4J_DISABLE_LOSSLESS_INTEGERS: false, | |
NEO4J_LOGGING_LEVEL: 'logging' // DEBUG, INFO, WARN and ERROR | |
} | |
} | |
}, | |
contract: { | |
export: '/var/lib/neo4j/import/', // Absolute path to Neo4J import folder in docker. | |
model: { | |
Kitty: require("../database/models/Kitty.js"), // The model for the DB | |
}, | |
strategies: require("../database/strategies/KittyStrategies.js") // The Strategies | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment