!42 feat: 修改生产环境的配置文件

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