Files
baiyue-firstleg/config/nacos/cn/baiyue-common.yml
T
ouyangxq 8287bc1da2 fix(deploy): 修复容器非 root 用户写入上传目录与日志目录的权限问题
- Dockerfile 在 USER app 前预建 /data/files 与 /app/logs 并 chown 给 app(uid 10001),
  避免 Docker 以 root:root 创建挂载点导致非 root 容器无法写入
- nacos cn 公共配置补充 logging.file.path,使 compose 注入的 LOG_PATH 真正生效
  (Spring Boot 只识别 logging.file.path,不识别裸的 LOG_PATH 环境变量)
2026-07-31 17:31:57 +08:00

65 lines
1.6 KiB
YAML

baiyue:
deployment:
region-code: ${REGION_CODE:CN}
cell: ${DEPLOYMENT_CELL:prod-cn}
data-residency: ${DATA_RESIDENCY:CN}
security:
jwt-secret: ${JWT_SECRET}
issuer: ${JWT_ISSUER:auth-service}
internal-service-token: ${INTERNAL_SERVICE_TOKEN}
token-key-prefix: ${REDIS_TOKEN_KEY_PREFIX:baiyue:auth}
openapi.enabled: ${SWAGGER_ENABLED:false}
audit.enabled: true
spring:
jackson:
default-property-inclusion: non_null
deserialization:
fail-on-unknown-properties: false
serialization:
write-dates-as-timestamps: false
data:
redis:
host: ${REDIS_HOST:redis-cn.internal}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
database: ${REDIS_DATABASE:0}
timeout: ${REDIS_TIMEOUT:3s}
cloud:
nacos:
discovery:
group: ${NACOS_GROUP:BAIYUE}
namespace: ${NACOS_NAMESPACE:prod-cn}
openfeign:
circuitbreaker.enabled: true
client.config.default:
connect-timeout: 3000
read-timeout: 5000
logging:
file:
path: ${LOG_PATH:/app/logs}
server:
shutdown: graceful
management:
endpoints:
web:
exposure:
include: health,info,prometheus
endpoint:
health:
probes.enabled: true
show-details: never
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
call-setters-on-nulls: true
global-config:
banner: false
db-config:
id-type: assign_id
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
springdoc:
api-docs.enabled: ${SWAGGER_ENABLED:false}
swagger-ui.enabled: ${SWAGGER_ENABLED:false}