Files
UserclassService/docker/application-prod.yml
T

81 lines
2.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ==============================================================
# BschClass 生产配置(projman 应用配置档案;同一份内容烤进镜像作独立运行兜底)
# --------------------------------------------------------------
# 加载顺序(低 -> 高):
# jar 内 application.yml(本地开发自己的,写本地 redis/DB)
# < 本文件(projman 挂载 /app/config/application-prod.yml,SPRING_PROFILES_ACTIVE=prod)
# < 平台注入环境变量(SERVER_PORT / SPRING_DATASOURCE_* / SPRING_REDIS_* / SPRING_RABBITMQ_* / SSO / FILE_WEB_PATH)
# ⚠️ 覆盖是 key 级合并非整文件替换;env 压过本文件。
# 本文件只放:appKey/appSecret、业务开关、JPA/Hikari 口径、日志级别。
# 不要放:端口/contextPath(SERVER_* env 注入)、平台供给的 DB/中间件连接(勾选 infra 后 env 注入)。
# ==============================================================
spring:
mvc:
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
max-file-size: 50MB
max-request-size: 200MB
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
datasource:
hikari:
# 连接治理(平台口径):泄漏 60s 打堆栈现形;拿不到连接快速失败而非干等 600s
minimum-idle: 10
maximum-pool-size: 30
connection-timeout: 10000
leak-detection-threshold: 60000
max-lifetime: 1800000
validation-timeout: 3000
connection-test-query: SELECT 1
connection-init-sql: SET NAMES utf8mb4
jpa:
database: MySQL
show-sql: false
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
properties:
hibernate.order_by.default_null_ordering: last
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
open-in-view: true
rabbitmq:
listener:
# 业务开关:消费端不随应用自动启动(保留原 Nacos 生产行为,与连接注入无关)
direct:
auto-startup: false
simple:
auto-startup: false
# 单点登录 / 应用间签名鉴权(基础平台 yh-auth / yh-app-auth)
yh:
sso:
# server-url-prefix / client-host-url 由平台按平台设置注入(改地址 Apply 即生效),此处不写
allow-headers: all
allow-origins: all
url-pattern: /api/*
mobi-api-pattern: /mobiapi/*
app-auth:
enabled: true
app-key: 100002
app-secret: 2314a3b158b24a838b2b9b69fd3db118
open:
enabled: true
# base-host 由平台注入;此处仅保留相对路径约定
user-center-url: http://base.yunhaixingtong.com/userbase
group-center-url: http://base.yunhaixingtong.com/userbase
# 上传文件落容器卷 /data/upload(平台挂载宿主持久目录,勿改)
FILE_PATH: /data/upload
# FILE_WEB_PATH / UPLOAD_WEB_PATH_HTTP 由平台注入 {portal}/bschclass/upload/...,此处不写
logging:
level:
root: INFO