generated from ATQQ/node-server
/
env.d.ts
151 lines (146 loc) · 2.63 KB
/
env.d.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/**
* 环境变量配置
*/
declare namespace NodeJS {
interface ProcessEnv {
// MySQL 数据库相关
/**
* 主机地址(域名||IP)
* @default 'localhost'
*/
MYSQL_DB_HOST: string
/**
* 端口号
* @default 3306
*/
MYSQL_DB_PORT: string
/**
* 数据库名
* @default 'ep-dev'
*/
MYSQL_DB_NAME: string
/**
* MySQL 用户名
*/
MYSQL_DB_USER: string
/**
* MySQL 密码
*/
MYSQL_DB_PWD: string
// MongoDB数据库相关
/**
* 主机地址(域名||ip)
* @default 'localhost'
*/
MONGO_DB_HOST: string
/**
* 端口号
* @default 27017
*/
MONGO_DB_PORT: string
/**
* 数据库名
* @default 'ep-dev'
*/
MONGO_DB_NAME: string
/**
* 是否需要登录认证
* @default false
*/
MONGO_DB_NEED_AUTH: string
/**
* 用户名
*/
MONGO_DB_USER: string
/**
* 密码
*/
MONGO_DB_PWD: string
// Redis 数据库相关
/**
* 主机地址(域名||IP)
* @default ‘127.0.0.1’
*/
REDIS_DB_HOST: string
/**
* 端口号
* @default 6379
*/
REDIS_DB_PORT: string
/**
* 数据库密码
*/
REDIS_DB_PASSWORD: string
/**
* 是否需要密码认证
* @default false
*/
REDIS_DB_NEED_AUTH: string
// 服务相关
/**
* 启动服务监听端口
* @default 3000
*/
SERVER_PORT: string
/**
* 服务主机地址
* @default 'localhost'
*/
SERVER_HOST: string
// 七牛云相关
/**
* AccessKey
*/
QINIU_ACCESS_KEY: string
/**
* SecretKey
*/
QINIU_SECRET_KEY: string
/**
* OSS存储空间名
*/
QINIU_BUCKET_NAME: string
/**
* OSS存储空间绑定的域名
*/
QINIU_BUCKET_DOMAIN: string
/**
* 七牛云图片封面压缩样式
*/
QINIU_BUCKET_IMAGE_COVER_STYLE: string
/**
* 七牛云图片预览压缩样式
*/
QINIU_BUCKET_IMAGE_PREVIEW_STYLE: string
/**
* 七牛云存储空间所选区域
* @default 'huanan'
*/
QINIU_BUCKET_ZONE: string
// 腾讯云相关
/**
* SecretId
*/
TENCENT_SECRET_ID: string
/**
* SecretKey
*/
TENCENT_SECRET_KEY: string
/**
* 短信签名
*/
TENCENT_MESSAGE_SignName: string
/**
* 短信模板ID
*/
TENCENT_MESSAGE_TemplateID: string
/**
* 短信应用appid
*/
TENCENT_MESSAGE_SmsSdkAppid: string
/**
* Token 盐值
*/
TOKEN_PREFIX: string
}
}