2021-04-12 23:38:42 +03:00
|
|
|
const baseConfig = require('./base.config')
|
|
|
|
|
|
|
|
const {
|
|
|
|
ORACLE_SHUTDOWN_SERVICE_POLLING_INTERVAL,
|
|
|
|
ORACLE_SHUTDOWN_SERVICE_URL,
|
|
|
|
ORACLE_SHUTDOWN_CONTRACT_ADDRESS,
|
|
|
|
ORACLE_SHUTDOWN_CONTRACT_METHOD
|
|
|
|
} = process.env
|
|
|
|
|
|
|
|
module.exports = {
|
2021-05-09 16:34:19 +03:00
|
|
|
...baseConfig,
|
2021-04-12 23:38:42 +03:00
|
|
|
id: 'shutdown-manager',
|
|
|
|
name: 'shutdown-manager',
|
|
|
|
pollingInterval: ORACLE_SHUTDOWN_SERVICE_POLLING_INTERVAL || 120000,
|
|
|
|
checksBeforeResume: 3,
|
|
|
|
checksBeforeStop: 1,
|
|
|
|
shutdownServiceURL: ORACLE_SHUTDOWN_SERVICE_URL,
|
|
|
|
shutdownContractAddress: ORACLE_SHUTDOWN_CONTRACT_ADDRESS,
|
2021-05-09 16:34:19 +03:00
|
|
|
shutdownMethod: (ORACLE_SHUTDOWN_CONTRACT_METHOD || 'isShutdown()').trim(),
|
|
|
|
requestTimeout: 2000
|
2021-04-12 23:38:42 +03:00
|
|
|
}
|