-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
executable file
·155 lines (134 loc) · 5.35 KB
/
.env.example
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
152
153
154
155
# +------------------------------------------------------
# | 应用环境配置文件
# +------------------------------------------------------
APP_DEBUG=0
SWOFT_DEBUG=0
# +------------------------------------------------------
# | 项目基本配置文件
# +------------------------------------------------------
HTTP_BASE_URL=https://www.xxx.com
# +------------------------------------------------------
# | environment应用环境,不同环境对应不同配置
# | dev .... 开发环境
# | pro .... 生产环境
# | test.... 测试环境
# | pre .... 预发布环境
# +------------------------------------------------------
APP_ENV=pro
# +------------------------------------------------------
# | HTTP_SERVER 配置
# +------------------------------------------------------
HTTP_SERVER_PORT=18316
HTTP_SERVER_TASK_WORKER_NUM=2
HTTP_SERVER_WORKER_NUM=1
# +------------------------------------------------------
# | RPC_SERVER 配置
# +------------------------------------------------------
RPC_SERVER_PORT=18317
RPC_SERVER_TASK_WORKER_NUM=2
RPC_SERVER_WORKER_NUM=1
# +------------------------------------------------------
# | 数据库及连接池配置文件
# +------------------------------------------------------
MASTER_DB_HOST=127.0.0.1
MASTER_DB_PORT=3306
MASTER_DB_NAME=open.agarwood.cloud.user.provider
MASTER_DB_USER=root
MASTER_DB_PWD=wumahooo
MASTER_DB_PREFIX=user_center_
MASTER_DB_MIN_ACTIVE=10
MASTER_DB_MAX_ACTIVE=100
MASTER_DB_MAX_WAIT=0
MASTER_DB_MAX_WAIT_TIME=0
MASTER_DB_MAX_WAIT_IDLE_TIME=60
# +------------------------------------------------------
# | redis及链接池配置
# +------------------------------------------------------
MASTER_REDIS_HOST=127.0.0.1
MASTER_REDIS_PORT=6379
MASTER_REDIS_DATABASE=0
MASTER_REDIS_PREFIX='user.center:'
MASTER_REDIS_POOL_MIN_ACTIVE=10
MASTER_REDIS_POOL_MAX_ACTIVE=20
MASTER_REDIS_POOL_MAX_WAIT=0
MASTER_REDIS_POOL_MAX_WAIT_TIME=0
MASTER_REDIS_POOL_MAX_IDLE_TIME=40
# +------------------------------------------------------
# | consul服务注册服务发现配置
# +------------------------------------------------------
CONSUL_HOST=127.0.0.1
CONSUL_PORT=8500
CONSUL_TIMEOUT=3
# +------------------------------------------------------
# | 多媒体文件保存
# +------------------------------------------------------
MEDIA_SERVER_PATH=/var/www/media/
MEDIA_SERVER_DOMAIN=https://www.cdn.xxx.com
# +------------------------------------------------------
# | node socket.io的地址
# +------------------------------------------------------
NODE_SOCKET_IO_BASE_URL=http://127.0.0.1:3000
# +------------------------------------------------------
# | mongodb 配置
# +------------------------------------------------------
MONGODB_HOST=127.0.0.1
MONGODB_PORT=27017
MONGODB_USERNAME=root
MONGODB_PASSWORD=root
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- 共同配置
# +------------------------------------------------------
RPC_CLIENT_TIMEOUT=0.5
RPC_CLIENT_CONNECT_TIMEOUT=1.0
RPC_CLIENT_WRITE_TIMEOUT=10
RPC_CLIENT_READ_TIMEOUT=0.5
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- oauth.center 配置
# +------------------------------------------------------
RPC_CLIENT_OAUTH_CENTER_HOST=127.0.0.1
RPC_CLIENT_OAUTH_CENTER_PORT=18307
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- user.center 配置
# +------------------------------------------------------
RPC_CLIENT_USER_CENTER_HOST=127.0.0.1
RPC_CLIENT_USER_CENTER_PORT=18317
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- mall.center 配置
# +------------------------------------------------------
RPC_CLIENT_MALL_CENTER_HOST=127.0.0.1
RPC_CLIENT_MALL_CENTER_PORT=18327
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- product.center 配置
# +------------------------------------------------------
RPC_CLIENT_PRODUCT_CENTER_HOST=127.0.0.1
RPC_CLIENT_PRODUCT_CENTER_PORT=18337
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- order.center 配置
# +------------------------------------------------------
RPC_CLIENT_ORDER_CENTER_HOST=127.0.0.1
RPC_CLIENT_ORDER_CENTER_PORT=18347
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- data.center 配置
# +------------------------------------------------------
RPC_CLIENT_DATA_CENTER_HOST=127.0.0.1
RPC_CLIENT_DATA_CENTER_PORT=18357
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- finance.center 配置
# +------------------------------------------------------
RPC_CLIENT_FINANCE_CENTER_HOST=127.0.0.1
RPC_CLIENT_FINANCE_CENTER_PORT=18367
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- customer.center 配置
# +------------------------------------------------------
RPC_CLIENT_CUSTOMER_CENTER_HOST=127.0.0.1
RPC_CLIENT_CUSTOMER_CENTER_PORT=18377
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- oauth.center 配置
# +------------------------------------------------------
RPC_CLIENT_AUTHORIZATION_CENTER_HOST=127.0.0.1
RPC_CLIENT_AUTHORIZATION_CENTER_PORT=18387
# +------------------------------------------------------
# | RPC_CLIENT 配置 -- market.center 配置
# +------------------------------------------------------
RPC_CLIENT_MARKET_CENTER_HOST=127.0.0.1
RPC_CLIENT_MARKET_CENTER_PORT=18397