1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

config from variables

This commit is contained in:
Jernej Pregelj 2019-04-17 14:36:32 +02:00 committed by Matthias Kretschmann
parent dbf28afc8a
commit 9ae10525f6
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 22 additions and 21 deletions

View File

@ -1,25 +1,26 @@
const config = { const config = {
app: { app: {
port: 4000, port: process.env.SERVER_PORT || 4000,
serviceScheme: 'http', nodeScheme: process.env.NODE_SCHEME || 'https',
serviceHost: 'localhost', nodeHost: process.env.NODE_HOST || 'nile.dev-ocean.com',
servicePort: 4000, nodePort: process.env.NODE_PORT || 443,
nodeScheme: 'http', aquariusScheme: process.env.AQUARIUS_SCHEME || 'https',
nodeHost: 'localhost', aquariusHost:
nodePort: 8545, process.env.AQUARIUS_HOST || 'nginx-aquarius.dev-ocean.com',
aquariusScheme: 'http', aquariusPort: process.env.AQUARIUS_PORT || 443,
aquariusHost: 'aquarius', brizoScheme: process.env.BRIZO_SCHEME || 'https',
aquariusPort: 5000, brizoHost: process.env.BRIZO_HOST || 'nginx-brizo.dev-ocean.com',
brizoScheme: 'http', brizoPort: process.env.BRIZO_PORT || 443,
brizoHost: 'localhost', brizoAddress:
brizoPort: 8030, process.env.BRIZO_ADDRESS ||
brizoAddress: '0x376817c638d2a04f475a73af37f7b51a2862d567', '0x376817c638d2a04f475a73af37f7b51a2862d567',
parityScheme: 'http', parityScheme: process.env.PARITY_SCHEME || 'https',
parityHost: 'localhost', parityHost: process.env.PARITY_HOST || 'nile.dev-ocean.com',
parityPort: 8545, parityPort: process.env.PARITY_PORT || 443,
secretStoreScheme: 'http', secretStoreScheme: process.env.SECRET_STORE_SCHEME || 'https',
secretStoreHost: 'localhost', secretStoreHost:
secretStorePort: 12001, process.env.SECRET_STORE_HOST || 'secret-store.dev-ocean.com',
secretStorePort: process.env.SECRET_STORE_PORT || 443,
verbose: true verbose: true
} }
} }

View File

@ -21,7 +21,7 @@ export class UpdateRouter {
const providers = await getProviders() const providers = await getProviders()
try { try {
const userAccount = await providers.web3.eth.personal.ecRecover( const userAccount = await providers.web3.eth.personal.ecRecover(
`You are retiring ${req.body.did}`, `You are updating ${req.body.did}`,
req.body.signature req.body.signature
) )
const events = await providers.ocean.keeper.didRegistry.contract.getPastEvents( const events = await providers.ocean.keeper.didRegistry.contract.getPastEvents(