-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaggregator-config.ts
39 lines (36 loc) · 1.13 KB
/
aggregator-config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { registerAs } from '@nestjs/config';
import { default as configuration } from './configuration';
import { default as database } from './database';
import databaseNearIndexer from './database-near-indexer';
import { default as nearConfig } from './near-config';
import opensearch from './opensearch';
import dynamodb from './dynamodb';
import launchdarkly from './launchdarkly';
export { default as validate } from './validationSchema';
export { TypeOrmConfigService } from './typeorm-config.service';
export { CacheConfigService } from './cache';
const aggregator = registerAs('aggregator', () => ({
expiredProposalsPollingInterval: parseInt(
process.env.AGGREGATOR_EXPIRED_PROPOSALS_POLLING_INTERVAL,
10,
),
tokenPricesPollingInterval: parseInt(
process.env.AGGREGATOR_TOKEN_PRICES_POLLING_INTERVAL,
10,
),
daoStatusPollingInterval: parseInt(
process.env.AGGREGATOR_DAO_STATUS_POLLING_INTERVAL,
10,
),
daoStatsCronTime: process.env.AGGREGATOR_DAO_STATS_CRON_TIME,
}));
export default [
configuration,
database,
nearConfig,
databaseNearIndexer,
aggregator,
opensearch,
dynamodb,
launchdarkly,
];