-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdraft-config.ts
35 lines (32 loc) · 1.02 KB
/
draft-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
import { registerAs } from '@nestjs/config';
import { default as configuration } from './configuration';
import { default as nearConfig } from './near-config';
import databaseNearIndexer from './database-near-indexer';
import { default as databaseDraft } from './database-draft';
import { default as redis } from './redis';
import { default as daoApi } from './dao-api';
import opensearch from './opensearch';
import launchdarkly from './launchdarkly';
import dynamodb from './dynamodb';
export { default as validate } from './validationSchema';
export { TypeOrmConfigService } from './typeorm-config.service';
export { CacheConfigService } from './cache';
const draft = registerAs('draft', () => {
return {
port: parseInt(process.env.PORT, 10),
rateTtl: parseInt(process.env.API_RATE_TTL, 10) || 60,
rateLimit: parseInt(process.env.API_RATE_LIMIT, 10) || 5,
};
});
export default [
configuration,
daoApi,
nearConfig,
databaseNearIndexer,
databaseDraft,
redis,
draft,
opensearch,
dynamodb,
launchdarkly,
];