-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.interface.ts
More file actions
93 lines (73 loc) · 1.91 KB
/
Copy pathconfig.interface.ts
File metadata and controls
93 lines (73 loc) · 1.91 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
export interface Config {
nest: NestConfig;
cors: CorsConfig;
swagger: SwaggerConfig;
security: SecurityConfig;
}
export interface NestConfig {
port: number;
}
export interface CorsConfig {
enabled: boolean;
}
export interface SwaggerConfig {
enabled: boolean;
title: string;
description: string;
version: string;
path: string;
}
export interface SecurityConfig {
expiresIn: string;
refreshIn: string;
bcryptSaltOrRound: string | number;
}
export interface ApplicationConfig {
nest: NestConfig;
cors: CorsConfig;
swagger: SwaggerConfig;
security: SecurityConfig;
SERVICE_NAME: string;
SERVICE_VERSION: string;
SERVICE_ENVIRONMENT: 'DEVELOPMENT' | 'CI' | 'STAGING' | 'PRODUCTION';
PORT: number;
NODE_ENV: string;
DATABASE_URL: string;
MONGO_DATABASE_URL: string;
// Log
LOG_ELASTICSEARCH_NODE?: string;
REDIS_SERVERS: string;
// S3 compatible storage settings
S3_REGION: string;
S3_ACCESS_KEY_ID: string;
S3_SECRET_ACCESS_KEY: string;
S3_BASE_ENDPOINT: string;
S3_USER_BUCKET: string;
QUEUE_REDIS_HOST: string;
QUEUE_REDIS_PASSWORD: string;
QUEUE_REDIS_PORT: number;
QUEUE_REDIS_USE_TLS?: boolean;
QUEUE_RETRY_INTERVAL?: number;
SMARTCHAIN_RPC_HOST: string;
ETHEREUM_ALCHEMY_API_URL: string;
ETHEREUM_ALCHEMY_API_KEY: string;
NEXTAUTH_SECRET: string;
OPEN_TELEMETRY_ZIPKIN_ENABLED?: boolean;
OPEN_TELEMETRY_PROMETHEUS_ENABLED?: boolean;
OPEN_TELEMETRY_COLLECTOR_URL?: string;
OPEN_TELEMETRY_LIGHTSTEP_ACCESS_TOKEN?: string;
JWT_ACCESS_SECRET: string;
JWT_EXPIRATION_TIME: string;
JWT_REFRESH_TOKEN_SECRET: string;
JWT_REFRESH_EXPIRATION_TIME: string;
EDGE_KV_URL: string;
EDGE_KV_AUTHORIZATION_TOKEN: string;
STRIPE_SECRET_KEY?: string;
STRIPE_PUBLISHABLE_KEY?: string;
STRIPE_WEBHOOK_SECRET?: string;
STRIPE_DEFAULT_CURRENCY?: string;
}
export interface UnflattenApplicationConfig {
name: string;
children: string[];
}