-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.d.ts
More file actions
59 lines (56 loc) · 1.36 KB
/
config.d.ts
File metadata and controls
59 lines (56 loc) · 1.36 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
declare module 'config' {
export const NODE_ENV: 'development' | 'production';
export const NODE_CONFIG_ENV: 'develop' | 'master' | 'prod' | 'local';
export const API_PORT: number;
export const MANAGER_PORT: number;
export const AGGREGATOR_PORT: number;
export const IS_OPEN_SWAGGER: boolean;
export const SENTRY: {
ENABLED: boolean;
DSN: string;
};
export const POSTGRES: {
readonly HOST: string;
readonly USERNAME: string;
readonly PASSWORD: string;
readonly PORT: number;
readonly DB: string;
readonly RETRY_ATTEMPTS: number;
readonly RETRY_DELAY: number;
};
export const JWT: {
readonly SECRET: string;
readonly EXPIRES_IN: string;
readonly SALT_ROUNDS: string;
};
export const AWS_S3: {
readonly ACCESS_KEY_ID: string;
readonly SECRET_ACCESS_KEY: string;
readonly REGION: string;
};
export const SMTP: {
HOST: string;
PORT: number;
SENDER: string;
USERNAME: string;
PASSWORD: string;
};
export const CABINET_URL: string;
export const CLIENT_URL: string;
export const WEB_PUSH: {
PRIVATE: string;
PUBLIC: string;
};
enum LINK_CHANNEL {
SMS = 'sms',
EMAIL = 'email',
}
export const CHAT_LINK_CHANNEL: LINK_CHANNEL;
export const PROXY: {
PROTOCOL: string;
HOST: string;
PORT: number;
USERNAME: string;
PASSWORD: string;
};
}