魏超 před 5 roky
rodič
revize
4786180a0d

src/main/resources/application-prod.yml → src/main/resources/application-prod-blue.yml Zobrazit soubor


+ 79
- 0
src/main/resources/application-prod-green.yml Zobrazit soubor

@@ -0,0 +1,79 @@
1
+server:
2
+  port: 9567
3
+spring:
4
+  application:
5
+    name: estateagents
6
+  datasource:
7
+    username: estateagents
8
+    password: DQ@0lW##kBb2+-jPZ
9
+    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/estateagents3.5?useUnicode=true&serverTimezone=CTT&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
10
+    driver-class-name: com.mysql.cj.jdbc.Driver
11
+    initial-size: 10 # 初始化连接数
12
+    max-active: 20 # 最大连接数
13
+    min-idle: 8 # 最小空闲数
14
+    max-idle: 8 # 最大空闲数
15
+  servlet:
16
+    multipart:
17
+      max-file-size: 10MB
18
+      max-request-size: 50MB
19
+
20
+##mybatis-plus
21
+mybatis-plus:
22
+  configuration:
23
+    call-setters-on-nulls: true
24
+  mapper-locations: classpath:mapper/**/*.xml
25
+wx:
26
+  miniapp:
27
+    appid: wxd6f47a9bb3052175
28
+    secret: 28f33b6bbc0f778c11a0bb234a7d6d4e
29
+    token:
30
+    aesKey:
31
+    msgDataFormat: JSON
32
+  tpls:
33
+    - name: notice
34
+      id: 6hWKexNlaVpAOvrcWxHHQ_Duz1gRIkg2-Clsktp2-Os
35
+      keywords: 4
36
+    - name: newCustomer
37
+      id: WiBYjqkE9KvwDv1WSq5vnuv5A6FSaOB8ETFcrVmtCEI
38
+      keywords: 4
39
+    - name: mainbiz
40
+      id: WiBYjqkE9KvwDv1WSq5vniGU4P0gvwlat-5ENYKpfxg
41
+      keywords: 6
42
+ali:
43
+  accessKeyId: LTAIkc75dpkJw8Lb
44
+  accessKeySecret: v4bvXCaix6vSDTCFfwSAdqV53iFEQw
45
+  oss:
46
+    endpoint: oss-cn-shanghai.aliyuncs.com
47
+    bucketName: estateagents
48
+    bucketURL: https://estateagents.oss-cn-shanghai.aliyuncs.com
49
+
50
+# 手机短信服务
51
+sms:
52
+  # 先使用外网地址, 后期使用内网地址
53
+  url: http://101.200.84.17:8081/sms
54
+  method: POST
55
+  contentType: "application/json;charset=UTF-8"
56
+  template:
57
+    code:
58
+    tel:
59
+    params:
60
+
61
+  # 以下为各模板 code
62
+  # 验证码
63
+  captcha:
64
+    # 模板 code
65
+    code: "0301"
66
+    # 有效时间 秒
67
+    expire: 120
68
+    # 验证码长度
69
+    size: 4
70
+    # 短信签名
71
+    sign: AI智慧案场
72
+
73
+  visitor:
74
+    code: "0501"
75
+
76
+#日志配置
77
+logging:
78
+  config: classpath:log/logback-spring.xml
79
+  debug: true