1. 业务服务配置(fund-cust/proj/req/exp/receipt)
- 添加 Nacos metadata.tenant-id 配置
- 添加 tenant.routing 配置
- 移除无效的 feign.fund-sys.url 配置
2. 共享服务配置(fund-report/file)
- 添加 tenant.routing.enabled: false
- 共享服务不需要租户路由
3. Gateway 配置清理
- 移除过时的 tenant-group-header 配置
- 移除过时的 group-separator 配置
4. 删除 Docker 配置文件
- 删除 fund-sys/application-docker.yml
- 删除 fund-gateway/application-docker.yml
配置规范:
业务服务: tenant.routing.enabled=true, metadata.tenant-id=${TENANT_ID:}
共享服务: tenant.routing.enabled=false
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
server:
|
|
port: 8600
|
|
|
|
spring:
|
|
application:
|
|
name: fund-file
|
|
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: localhost:8848
|
|
namespace: fund-platform
|
|
group: DEFAULT_GROUP
|
|
username: nacos
|
|
password: nacos
|
|
# 共享服务,无需租户路由
|
|
|
|
datasource:
|
|
url: jdbc:mysql://localhost:3306/fund_file?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
|
username: root
|
|
password: ${DB_PASSWORD:zjf@123456}
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
# 文件上传配置
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 50MB
|
|
max-request-size: 100MB
|
|
|
|
# 腾讯云COS配置
|
|
cos:
|
|
enabled: true
|
|
secret-id: ${COS_SECRET_ID:AKIDukKfkY5LK2SbU6QTM7csugCSSDjzyiDS}
|
|
secret-key: ${COS_SECRET_KEY:0lHXYIn20jDRP7ZlhNnyub3GEwObZHjw}
|
|
bucket: ${COS_BUCKET:test-1308258046}
|
|
region: ${COS_REGION:ap-beijing}
|
|
bucket-host: ${COS_BUCKET_HOST:https://test-1308258046.cos.ap-beijing.myqcloud.com}
|
|
|
|
# 本地文件存储配置(备用)
|
|
file:
|
|
upload:
|
|
path: ./uploads
|
|
max-size: 52428800
|
|
|
|
logging:
|
|
level:
|
|
com.fundplatform.file: DEBUG
|
|
pattern:
|
|
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
|
|
|
|
# 共享服务,禁用租户路由
|
|
tenant:
|
|
routing:
|
|
enabled: false
|