From 7f74d37e8b67d6cf7c6d60d1530bc5dca9b8f1a0 Mon Sep 17 00:00:00 2001 From: jianjun Date: Thu, 30 Sep 2021 09:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-prod.yml | 55 ++++++++----------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/tduck-api/src/main/resources/application-prod.yml b/tduck-api/src/main/resources/application-prod.yml index 48bfc3d..5ff145d 100644 --- a/tduck-api/src/main/resources/application-prod.yml +++ b/tduck-api/src/main/resources/application-prod.yml @@ -1,9 +1,9 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://127.0.0.1:3306/tduck?useSSL=false&useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&tinyInt1isBit=false - username: tduck - password: tduck001 + url: jdbc:mysql://rm-m5e3vzs2637224wj9.mysql.rds.aliyuncs.com:3306/epmet_tduck?useSSL=false&useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&tinyInt1isBit=false + username: epmet_tduck + password: EpmEt-db-UsEr type: com.zaxxer.hikari.HikariDataSource hikari: minimum-idle: 5 @@ -15,9 +15,9 @@ spring: connection-test-query: SELECT 1 FROM DUAL redis: database: 0 - host: 127.0.0.1 + host: r-m5ez3n1j0qc3ykq2ut.redis.rds.aliyuncs.com port: 6379 - password: + password: EpmEtclOUdrEdIs!Q2w # 密码(默认为空) timeout: 6000ms # 连接超时时长(毫秒) jedis: pool: @@ -32,37 +32,30 @@ spring: namespace: bd205d23-e696-47be-b995-916313f86e99 register-enabled: true mail: - host: smtp.163.com - username: test@163.com # 邮箱账号 - password: DSXFPX24XOBURMDY #邮箱授权码 + host: smtp.exmail.qq.com + username: mpw:9jwi2HILb4x+eVy2fA0SYeits0G3qlm/YajJdX0OKQU= + password: mpw:kLAEhMW75jvbXovAGdf4gEoe2/j6OJMaK2GYhTD8b8A= dinger: project-id: ${spring.application.name} dingers: # 使用钉钉机器人, 请根据自己机器人配置信息进行修改 dingtalk: - tokenId: a5f66c3374b1642fe2142dbf56d5997e280172d4e8f2b546c9423a68c82ece6c - secret: SEC95f4f40b533ad379ea6a6d1af6dd37029383cfe1b7cd96dfac2678be2c1c3ed1 + tokenId: 09841218241814985bb3b63bc2a55f6116595f07b2d79ad7fd044f185254d596 + secret: SEC1dce5c64c5aaf086776052d0c4f6e785ae07b5e1fbfa4f4c261a57260cafcc68 logging: level: com.tduck.cloud: debug config: classpath:logback-spring.xml -# 请求日志是否打印 platform: - qq: - oauth: - appId: - secret: oss: - ossType: 3 #本地存储 - endpoint: - accessKeyId: - accessKeySecret: - bucketName: - domain: https://demo.tduckapp.com/profile/ #提供访问的域名 - upload-folder: /home/tduck/profile #文件存放的位置 - access-path-pattern: /profile/** # 文件访问路径前缀 这里更改domain也需要更改 + ossType: 0 + endpoint: oss-cn-qingdao.aliyuncs.com + accessKeyId: LTAIAlG9EsIjP3KY + accessKeySecret: CwP2YTz7iOBZtAdRQVoptVO7su5MOt + bucketName: elink-esua-epdc + domain: https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com sms: type: 0 # 短信平台类型 secretId: mpw:EvC1LR0eGdzeQzkuO7fhEazxGtmdue8FJDzSA1l+gICuOUEDXI8zcjK+VXB2aWKS @@ -72,16 +65,14 @@ platform: retrievePwdValidateCodeTemplateId: #腾讯云使用的 appId: #腾讯云使用的 front: - baseUrl: https://demo.tduckapp.com/ - resetPwdUrl: https://demo.tduckapp.com/forget/password?code={}&email={} - updateEmailUrl: https://demo.tduckapp.com/account/forget/validate?type=updateEmail&code={}&email={} - + baseUrl: http://localhost:8888/ + resetPwdUrl: http://localhost:8888/forget/password?code={}&email={} + updateEmailUrl: http://localhost:8888/account/validate?type=updateEmail&code={}&email={} wx: mp: redis-config-key-prefix: epmet:questionnaire:wx configs: - - appId: #公众号appId - secret: #公众号秘钥 - token: dHClTzEAcayUX0Jyy9TwBp89QrdWvvZZ - aesKey: 3aNsbtc8wdx92M14YszvQSU4zksx9M1Gl8k655vYOLB - + - appId: wxdcce08b6f0d17f25 + secret: 52ca70d162e5f931451d55f9a4423d33 + token: 1jkoyyih83nj8 + aesKey: