diff --git a/zlt-business/file-center/src/main/resources/application.yml b/zlt-business/file-center/src/main/resources/application.yml index 503a8cce..97fb8abe 100644 --- a/zlt-business/file-center/src/main/resources/application.yml +++ b/zlt-business/file-center/src/main/resources/application.yml @@ -1,92 +1,92 @@ -spring: - datasource: - url: jdbc:mysql://${zlt.datasource.ip}/file-center-test?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai - username: ${zlt.datasource.username} - password: ${zlt.datasource.password} - driver-class-name: com.mysql.cj.jdbc.Driver - -mybatis-plus: - mapper-locations: classpath:/mapper/*Mapper.xml - #实体扫描,多个package用逗号或者分号分隔 - typeAliasesPackage: com.central.common.model - global-config: - db-config: - id-type: INPUT - -springdoc: - group-configs: - - group: 'default' - paths-to-match: '/**' - packages-to-scan: com.central.file.controller - -knife4j: - enable: true - setting: - swagger-model-name: 文件中心接口文档 - -zlt: - file-server: - type: oss # 主存储类型(用于文件上传) - s3: - enabled: true - access-key: ${zlt.s3.access-key} - accessKeySecret: ${zlt.s3.accessKeySecret} - endpoint: ${zlt.s3.endpoint} - bucketName: ${zlt.s3.bucketName} - region: ${zlt.s3.region:us-east-1} - cos: - secretId: ${zlt.cos.secretId} - secretKey: ${zlt.cos.secretKey} - endpoint: ${zlt.cos.endpoint} - region: ${zlt.cos.region} - bucketName: ${zlt.cos.bucketName} - oss: - secretId: ${zlt.oss.secretId} - secretKey: ${zlt.oss.secretKey} - endpoint: ${zlt.oss.endpoint} - bucketName: ${zlt.oss.bucketName} - storage: - time-router: - # 开启按时间路由 - enabled: true - # 阈值天数;<=90 天走 OSS,>90 天走 MinIO - days: 10 - #多租户配置 - tenant: - enable: false - -#fastDFS配置 -#fdfs: -# soTimeout: 1500 -# connectTimeout: 600 -# trackerList: ${zlt.fdfs.trackerList} - -# CDN配置示例 -aliyun: - cdn: - # 是否启用CDN功能 - enabled: true - # 阿里云AccessKey ID(建议使用环境变量配置) - access-key-id: ${zlt.oss.secretId:LTAI5tSNV1RvexXpMMCZhxSe} - # 阿里云AccessKey Secret(建议使用环境变量配置) - access-key-secret: ${zlt.oss.secretKey:XocJRWU8emwjjvYLTrc04l91VZMkQK} - # 地域ID - region-id: cn-beijing - # 默认域名 - domain: cdn.goflytec.com - # 默认批次大小 - default-batch-size: 100 - # 任务等待超时时间(秒) - task-timeout: 300 -cdn: - enabled: true - oss: - domain: cdn.goflytec.com - s3: - domain: minicdn.goflytec.com - -# 日志配置 -logging: - level: - com.central.file.service.impl.CdnServiceImpl: DEBUG - com.central.file.schedule.CdnScheduleTask: INFO \ No newline at end of file +#spring: +# datasource: +# url: jdbc:mysql://${zlt.datasource.ip}/file-center-test?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai +# username: ${zlt.datasource.username} +# password: ${zlt.datasource.password} +# driver-class-name: com.mysql.cj.jdbc.Driver +# +#mybatis-plus: +# mapper-locations: classpath:/mapper/*Mapper.xml +# #实体扫描,多个package用逗号或者分号分隔 +# typeAliasesPackage: com.central.common.model +# global-config: +# db-config: +# id-type: INPUT +# +#springdoc: +# group-configs: +# - group: 'default' +# paths-to-match: '/**' +# packages-to-scan: com.central.file.controller +# +#knife4j: +# enable: true +# setting: +# swagger-model-name: 文件中心接口文档 +# +#zlt: +# file-server: +# type: oss # 主存储类型(用于文件上传) +# s3: +# enabled: true +# access-key: ${zlt.s3.access-key} +# accessKeySecret: ${zlt.s3.accessKeySecret} +# endpoint: ${zlt.s3.endpoint} +# bucketName: ${zlt.s3.bucketName} +# region: ${zlt.s3.region:us-east-1} +# cos: +# secretId: ${zlt.cos.secretId} +# secretKey: ${zlt.cos.secretKey} +# endpoint: ${zlt.cos.endpoint} +# region: ${zlt.cos.region} +# bucketName: ${zlt.cos.bucketName} +# oss: +# secretId: ${zlt.oss.secretId} +# secretKey: ${zlt.oss.secretKey} +# endpoint: ${zlt.oss.endpoint} +# bucketName: ${zlt.oss.bucketName} +# storage: +# time-router: +# # 开启按时间路由 +# enabled: true +# # 阈值天数;<=90 天走 OSS,>90 天走 MinIO +# days: 10 +# #多租户配置 +# tenant: +# enable: false +# +##fastDFS配置 +##fdfs: +## soTimeout: 1500 +## connectTimeout: 600 +## trackerList: ${zlt.fdfs.trackerList} +# +## CDN配置示例 +#aliyun: +# cdn: +# # 是否启用CDN功能 +# enabled: true +# # 阿里云AccessKey ID(建议使用环境变量配置) +# access-key-id: ${zlt.oss.secretId:LTAI5tSNV1RvexXpMMCZhxSe} +# # 阿里云AccessKey Secret(建议使用环境变量配置) +# access-key-secret: ${zlt.oss.secretKey:XocJRWU8emwjjvYLTrc04l91VZMkQK} +# # 地域ID +# region-id: cn-beijing +# # 默认域名 +# domain: cdn.goflytec.com +# # 默认批次大小 +# default-batch-size: 100 +# # 任务等待超时时间(秒) +# task-timeout: 300 +#cdn: +# enabled: true +# oss: +# domain: cdn.goflytec.com +# s3: +# domain: minicdn.goflytec.com +# +## 日志配置 +#logging: +# level: +# com.central.file.service.impl.CdnServiceImpl: DEBUG +# com.central.file.schedule.CdnScheduleTask: INFO \ No newline at end of file diff --git a/zlt-config/src/main/resources/application-prod.properties b/zlt-config/src/main/resources/application-prod.properties index 6139013e..9fbd9f93 100644 --- a/zlt-config/src/main/resources/application-prod.properties +++ b/zlt-config/src/main/resources/application-prod.properties @@ -1,97 +1,97 @@ -########################## 统一变量配置 ########################## -##### 数据库配置 -zlt.datasource.ip=sh-cdb-i6yxaaec.sql.tencentcdb.com:58797 -zlt.datasource.username=root -zlt.datasource.password=ZXC_zxc!@#123+ - -##### redis配置 -spring.data.redis.host=81.70.164.178 -#spring.data.redis.host=127.0.0.1 -spring.data.redis.port=6379 -spring.data.redis.password=mvaiopdle7IwdQrinzTQ -spring.data.redis.database=0 -spring.data.redis.timeout=5000 - - -##### elasticsearch配置 -zlt.elasticsearch.uris=119.45.169.13:9200 -zlt.elasticsearch.username=elastic -zlt.elasticsearch.password=iot123456@ - -##### sentinel配置 -zlt.sentinel.dashboard=192.168.28.130:6999 - -##### fastDFS配置 -zlt.fdfs.web-url=192.168.28.130 -zlt.fdfs.trackerList=${zlt.fdfs.web-url}:22122 - -##### s3配置 -zlt.s3.access-key=Hq78CaYg2BI6ZfxCRMKI -zlt.s3.accessKeySecret=DJCt5q9K7GQ2zcBEfr3twb1vQ6BgUW1LKFlI5NSw -#zlt.s3.endpoint=http://local.goflytec.com:9194 -#zlt.s3.endpoint=https://local.goflytec.com -zlt.s3.endpoint=http://220.205.16.27:9000 -zlt.s3.bucketName=goflymedia -zlt.s3.region=us-east-1 - -zlt.oss.secretId=LTAI5tSNV1RvexXpMMCZhxSe -zlt.oss.secretKey=XocJRWU8emwjjvYLTrc04l91VZMkQK -zlt.oss.endpoint=https://oss-cn-beijing.aliyuncs.com -zlt.oss.bucketName=goflyapp - -#### cos配置 -zlt.cos.secretId=AKIDkMn6B3h7KJ5dIkyzpRr7C6mFUqFWbu1u -zlt.cos.secretKey=jDThssfEZieS4S8bqsgIiAUdbXVVYgdQ -zlt.cos.endpoint=gofly-1333114031.cos.ap-nanjing.myqcloud.com -zlt.cos.bucketName=gofly-1333114031 -zlt.cos.region=ap-nanjing - -# 数据迁移配置 -zlt.storage.hot-data-days=30 -zlt.storage.enable-time-window=false -zlt.migration.enable-verification: true - -##### 日志链路追踪 -zlt.trace.enable=true - -zlt.security.tencent.appId=wx30a3c8de94a85584 -zlt.security.tencent.appSecret=e64d6e3dcfe88d0daee50e77f5a2ee69 -zlt.security.tencent.token=YPbzETU8oe3XguGgwtA4g1DqlFKvw7pT -zlt.security.tencent.encodingAESKey=YPbzETU8oe3XguGgwtA4g1DqlFKvw7pTZiyHTxCiQxh -zlt.security.tencent.templateId=YOUR_TEMPLATE_ID -zlt.security.tencent.jscode2sessionUrl=https://api.weixin.qq.com/sns/jscode2session -zlt.security.tencent.accessTokenUrl=https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${zlt.security.tencent.appId}&secret=${zlt.security.tencent.appSecret} -zlt.security.tencent.getwxacodeUrl=https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token= -zlt.security.tencent.pagePath=/pages/link/link?uuid= - -# 微信支付商户号 -zlt.wxpay.merchantId=1703796518 -# 商户证书序列号 -zlt.wxpay.merchantSerialNumber=11F4AC03C50EB582D3EDE082591D1F9A65388D51 -# 61CBFF26EC90204F8F308B6D318E90F14DF233FC -# 微信支付申请的应用ID -zlt.wxpay.appId=wx30a3c8de94a85584 -# 微信支付异步通知地址(需外网可访问且与微信支付平台配置一致) -zlt.wxpay.notifyUrl=https://img.goflytec.com/api-order/wechat/pay/notify -# 微信退款异步通知地址(需外网可访问且与微信支付平台配置一致) -zlt.wxrefund.notifyUrl= https://img.goflytec.com/api-order/wechat/refund/notify -# 商户API私钥路径 -zlt.wxpay.privateKeyPath=/data/zlt/cert/apiclient_key.pem -# 商户APIV3密钥 -zlt.wxpay.apiV3Key=aIt5Vw3cYXSCSd4L5h14kIyDsoXBow7r - -zlt.tenant.id: webApp - -# 选择服务商:TENCENT 或 ALIYUN -sms.provider=ALIYUN - -# 腾讯云短信配置 -sms.tencent.appId=1400xxxxxxx # 短信应用ID -sms.tencent.secretId=AKIDxxxxxxx # 控制台API密钥 -sms.tencent.secretKey=xxxxxxxxxxxx # 控制台API密钥 -sms.tencent.signName=xxx - -# 阿里云短信配置 -sms.aliyun.accessKeyId=xxx -sms.aliyun.accessKeySecret=xxx -sms.aliyun.signName=xxx +########################### 统一变量配置 ########################## +###### 数据库配置 +#zlt.datasource.ip=sh-cdb-i6yxaaec.sql.tencentcdb.com:58797 +#zlt.datasource.username=root +#zlt.datasource.password=ZXC_zxc!@#123+ +# +###### redis配置 +#spring.data.redis.host=81.70.164.178 +##spring.data.redis.host=127.0.0.1 +#spring.data.redis.port=6379 +#spring.data.redis.password=mvaiopdle7IwdQrinzTQ +#spring.data.redis.database=0 +#spring.data.redis.timeout=5000 +# +# +###### elasticsearch配置 +#zlt.elasticsearch.uris=119.45.169.13:9200 +#zlt.elasticsearch.username=elastic +#zlt.elasticsearch.password=iot123456@ +# +###### sentinel配置 +#zlt.sentinel.dashboard=192.168.28.130:6999 +# +###### fastDFS配置 +#zlt.fdfs.web-url=192.168.28.130 +#zlt.fdfs.trackerList=${zlt.fdfs.web-url}:22122 +# +###### s3配置 +#zlt.s3.access-key=Hq78CaYg2BI6ZfxCRMKI +#zlt.s3.accessKeySecret=DJCt5q9K7GQ2zcBEfr3twb1vQ6BgUW1LKFlI5NSw +##zlt.s3.endpoint=http://local.goflytec.com:9194 +##zlt.s3.endpoint=https://local.goflytec.com +#zlt.s3.endpoint=http://220.205.16.27:9000 +#zlt.s3.bucketName=goflymedia +#zlt.s3.region=us-east-1 +# +#zlt.oss.secretId=LTAI5tSNV1RvexXpMMCZhxSe +#zlt.oss.secretKey=XocJRWU8emwjjvYLTrc04l91VZMkQK +#zlt.oss.endpoint=https://oss-cn-beijing.aliyuncs.com +#zlt.oss.bucketName=goflyapp +# +##### cos配置 +#zlt.cos.secretId=AKIDkMn6B3h7KJ5dIkyzpRr7C6mFUqFWbu1u +#zlt.cos.secretKey=jDThssfEZieS4S8bqsgIiAUdbXVVYgdQ +#zlt.cos.endpoint=gofly-1333114031.cos.ap-nanjing.myqcloud.com +#zlt.cos.bucketName=gofly-1333114031 +#zlt.cos.region=ap-nanjing +# +## 数据迁移配置 +#zlt.storage.hot-data-days=30 +#zlt.storage.enable-time-window=false +#zlt.migration.enable-verification: true +# +###### 日志链路追踪 +#zlt.trace.enable=true +# +#zlt.security.tencent.appId=wx30a3c8de94a85584 +#zlt.security.tencent.appSecret=e64d6e3dcfe88d0daee50e77f5a2ee69 +#zlt.security.tencent.token=YPbzETU8oe3XguGgwtA4g1DqlFKvw7pT +#zlt.security.tencent.encodingAESKey=YPbzETU8oe3XguGgwtA4g1DqlFKvw7pTZiyHTxCiQxh +#zlt.security.tencent.templateId=YOUR_TEMPLATE_ID +#zlt.security.tencent.jscode2sessionUrl=https://api.weixin.qq.com/sns/jscode2session +#zlt.security.tencent.accessTokenUrl=https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${zlt.security.tencent.appId}&secret=${zlt.security.tencent.appSecret} +#zlt.security.tencent.getwxacodeUrl=https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token= +#zlt.security.tencent.pagePath=/pages/link/link?uuid= +# +## 微信支付商户号 +#zlt.wxpay.merchantId=1703796518 +## 商户证书序列号 +#zlt.wxpay.merchantSerialNumber=11F4AC03C50EB582D3EDE082591D1F9A65388D51 +## 61CBFF26EC90204F8F308B6D318E90F14DF233FC +## 微信支付申请的应用ID +#zlt.wxpay.appId=wx30a3c8de94a85584 +## 微信支付异步通知地址(需外网可访问且与微信支付平台配置一致) +#zlt.wxpay.notifyUrl=https://img.goflytec.com/api-order/wechat/pay/notify +## 微信退款异步通知地址(需外网可访问且与微信支付平台配置一致) +#zlt.wxrefund.notifyUrl= https://img.goflytec.com/api-order/wechat/refund/notify +## 商户API私钥路径 +#zlt.wxpay.privateKeyPath=/data/zlt/cert/apiclient_key.pem +## 商户APIV3密钥 +#zlt.wxpay.apiV3Key=aIt5Vw3cYXSCSd4L5h14kIyDsoXBow7r +# +#zlt.tenant.id: webApp +# +## 选择服务商:TENCENT 或 ALIYUN +#sms.provider=ALIYUN +# +## 腾讯云短信配置 +#sms.tencent.appId=1400xxxxxxx # 短信应用ID +#sms.tencent.secretId=AKIDxxxxxxx # 控制台API密钥 +#sms.tencent.secretKey=xxxxxxxxxxxx # 控制台API密钥 +#sms.tencent.signName=xxx +# +## 阿里云短信配置 +#sms.aliyun.accessKeyId=xxx +#sms.aliyun.accessKeySecret=xxx +#sms.aliyun.signName=xxx