From 98742883142c30b43aa44e9f6c87f8df6a87ce2d Mon Sep 17 00:00:00 2001 From: xiaohanzi Date: Wed, 8 Jul 2020 13:27:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=94=9F=E4=BA=A7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-prod.yml | 40 ++++++++++++++----- .../src/main/resources/application-prod.yml | 38 +++++++++++++----- .../src/main/resources/application-prod.yml | 38 ++++++++++++------ .../src/main/resources/application-prod.yml | 39 ++++++++++++------ .../src/main/resources/application-prod.yml | 38 ++++++++++++------ .../src/main/resources/application-prod.yml | 38 ++++++++++++------ .../src/main/resources/application-prod.yml | 38 ++++++++++++------ .../src/main/resources/application-prod.yml | 37 ++++++++++++----- .../src/main/resources/application-prod.yml | 37 ++++++++++++----- 9 files changed, 239 insertions(+), 104 deletions(-) diff --git a/mallinkAdmin/src/main/resources/application-prod.yml b/mallinkAdmin/src/main/resources/application-prod.yml index 226742894..cc166698b 100644 --- a/mallinkAdmin/src/main/resources/application-prod.yml +++ b/mallinkAdmin/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true&allowMultiQueries=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true&allowMultiQueries=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -24,9 +24,9 @@ spring: connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=60000" # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -37,11 +37,23 @@ spring: max-idle: 20 max-wait: -1 min-idle: 0 + + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou + # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -60,6 +72,12 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / + # + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" flyway: enabled: true @@ -80,9 +98,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -99,7 +117,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ ueditor: config: config.json diff --git a/mallinkBApi/src/main/resources/application-prod.yml b/mallinkBApi/src/main/resources/application-prod.yml index 4b5504eea..6f9e6719b 100644 --- a/mallinkBApi/src/main/resources/application-prod.yml +++ b/mallinkBApi/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -23,9 +23,9 @@ spring: maxOpenPreparedStatements: 20 # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -36,11 +36,22 @@ spring: max-idle: 20 max-wait: -1 min-idle: 0 + + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -59,6 +70,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 @@ -73,9 +89,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -92,7 +108,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ pos: dev_id: fmpos diff --git a/mallinkCApi/src/main/resources/application-prod.yml b/mallinkCApi/src/main/resources/application-prod.yml index 92549748d..6af3cffff 100644 --- a/mallinkCApi/src/main/resources/application-prod.yml +++ b/mallinkCApi/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -23,9 +23,9 @@ spring: maxOpenPreparedStatements: 20 # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -36,11 +36,21 @@ spring: max-idle: 20 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -59,7 +69,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / - + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 bucketName: iformall-net @@ -73,9 +87,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -92,7 +106,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ logging: level: diff --git a/mallinkCallback/src/main/resources/application-prod.yml b/mallinkCallback/src/main/resources/application-prod.yml index 14c865b4d..4f93843b8 100644 --- a/mallinkCallback/src/main/resources/application-prod.yml +++ b/mallinkCallback/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -24,9 +24,9 @@ spring: connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -37,11 +37,22 @@ spring: max-idle: 20 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou + # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -60,7 +71,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / - + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 bucketName: iformall-net @@ -78,9 +93,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -97,7 +112,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ logging: level: diff --git a/mallinkMQConsumer/src/main/resources/application-prod.yml b/mallinkMQConsumer/src/main/resources/application-prod.yml index ac253f36e..715b298c4 100644 --- a/mallinkMQConsumer/src/main/resources/application-prod.yml +++ b/mallinkMQConsumer/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -24,9 +24,9 @@ spring: connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -37,11 +37,21 @@ spring: max-idle: 50 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -60,7 +70,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / - + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 bucketName: iformall-net @@ -74,9 +88,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -93,7 +107,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ logging: level: diff --git a/mallinkPosApi/src/main/resources/application-prod.yml b/mallinkPosApi/src/main/resources/application-prod.yml index 8f571529b..b3708df45 100644 --- a/mallinkPosApi/src/main/resources/application-prod.yml +++ b/mallinkPosApi/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -23,9 +23,9 @@ spring: maxOpenPreparedStatements: 20 # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -36,11 +36,21 @@ spring: max-idle: 20 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -59,7 +69,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / - + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 bucketName: iformall-net @@ -73,9 +87,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -92,7 +106,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ logging: level: diff --git a/mallinkSchedule/src/main/resources/application-prod.yml b/mallinkSchedule/src/main/resources/application-prod.yml index e2076b714..ac6331e78 100644 --- a/mallinkSchedule/src/main/resources/application-prod.yml +++ b/mallinkSchedule/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -24,9 +24,9 @@ spring: connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -37,11 +37,21 @@ spring: max-idle: 8 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -60,7 +70,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / - + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 bucketName: iformall-net @@ -74,9 +88,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -93,7 +107,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ monitor_emails: houtaikaifa@iformall.com,xiaochengxufabu@iformall.com monitor_enable: false clear_data_before_msg_record: 1 diff --git a/mallinkSysAdmin/src/main/resources/application-prod.yml b/mallinkSysAdmin/src/main/resources/application-prod.yml index dd714f6f7..fa6b83bc0 100644 --- a/mallinkSysAdmin/src/main/resources/application-prod.yml +++ b/mallinkSysAdmin/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -24,9 +24,9 @@ spring: connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 1 @@ -37,11 +37,21 @@ spring: max-idle: 20 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -60,6 +70,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" flyway: enabled: true @@ -80,9 +95,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -99,7 +114,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ ueditor: config: config.json diff --git a/mallinkWebSocketServer/src/main/resources/application-prod.yml b/mallinkWebSocketServer/src/main/resources/application-prod.yml index d84017f8d..9c16e9070 100644 --- a/mallinkWebSocketServer/src/main/resources/application-prod.yml +++ b/mallinkWebSocketServer/src/main/resources/application-prod.yml @@ -1,11 +1,11 @@ spring: profiles: - include: rabbitMQ + include: aliyunRocketMQ # JDBC datasource: - url: jdbc:mysql://formalldb.cfqyqflkdlit.rds.cn-northwest-1.amazonaws.com.cn:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true - username: ENC(NUzgQOdJnCbVLKT6BaX0aw==) - password: ENC(mvuoDRiu0jqYaKNRwwTuXZ6U7aoIaqsjdiPqTLgi/nY=) + url: jdbc:mysql://zc349w82qvn56ftl5e64-rw4rm.rwlb.rds.aliyuncs.com:3306/mallink?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false&useAffectedRows=true + username: ENC(nUefcxWYlMS/1cDxikIKwA==) + password: ENC(neToS+hzeFjgSFB/7UEl5qYnW2rUjrPq) type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat @@ -24,9 +24,9 @@ spring: connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" # REDIS redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 3 @@ -37,11 +37,21 @@ spring: max-idle: 8 max-wait: -1 min-idle: 0 + # SMS + aliyun: + sms: + accessKeyId: LTAI4G7ixY4AhvM35F8o3W3V + accessKeySecret: VfWqGb83qIQrS9us45utskl8itd7ry + product: Dysmsapi + domain: dysmsapi.aliyuncs.com + regionId: cn-hangzhou + dateFormat: yyyyMMdd + endpointName: cn-hangzhou # EMAIL mail: host: smtp.exmail.qq.com - username: ENC(IiL/PHP9wCkpibWHRH/Mts8K9fh4izYqaiaF66bDrqtEHP+KUcJRRg==) - password: ENC(m7L57m8mk6tApVoa4XIDQnXF0VxnYjKe4LVdzcgb+xY=) # 授权密码 + username: zhengfangyuan@iformall.com + password: xnydCeUzofB2h8qp # 授权密码 properties: mail: smtp: @@ -60,6 +70,11 @@ spring: publisher-confirms: true publisher-returns: false virtual-host: / + aliyunRocketmq: + accessKeyId: "LTAI4G7ixY4AhvM35F8o3W3V" + accessKeySecret: "VfWqGb83qIQrS9us45utskl8itd7ry" + groupId: "GID_P_1" + namesrvAddr: "http://MQ_INST_1796289517488555_Bcqaq2is.cn-beijing.mq-internal.aliyuncs.com:8080" aws: clientRegion: cn-northwest-1 @@ -74,9 +89,9 @@ wechat: componentToken: ENC(rkxj0733WxFFDLgA9x01m2s5Fi2L+0PC) componentAesKey: ENC(EIbJUBpbYOrLb4YQ/HXLQmxlxgAqIp2ZmpnGICC8pu5xiTz3Cqfkbwd2S8raCcK/IvYcX2GmedI=) redis: - host: 127.0.0.1 + host: 101.201.103.81 port: 6379 - password: ENC(8gYU47Fu93NUJPhwPCiPbAT+6VFA1YDx1egK4Z0Nl6w=) + password: ENC(KD+AiEPSefoV6aKm5qchSASXFGijMzHL) timeout: 3600 expire: 1800 #30分钟 database: 2 @@ -93,7 +108,7 @@ fm: exception_emails: houtaikaifa@iformall.com deploy: 3 open: true - upload_dir: /home/ec2-user/server/uploads/ + upload_dir: /root/uploads/ logging: level: