# =============================================
# 生产环境配置 (Prod)
# 激活方式: -Dspring.profiles.active=prod
# K8s集群内部署，使用服务名寻址
# =============================================

spring:
  config:
    import:
      - nacos:common.yml?refreshEnabled=true
      - nacos:safety-eval-service.yml
  cloud:
    nacos:
      discovery:
        server-addr: prod-nacos:8848
        namespace: jjb-dragon
        username: nacos
        password: u9Hc7tLFBY
      config:
        server-addr: prod-nacos:8848
        namespace: jjb-dragon
        username: nacos
        password: u9Hc7tLFBY
        file-extension: yml
        shared-configs:
          - data-id: config-spring.yml
            group: DEFAULT_GROUP
            refresh: true
          - data-id: config-actuator.yml
            group: DEFAULT_GROUP
            refresh: true
          - data-id: config-cache.yml
            group: DEFAULT_GROUP
            refresh: true
          - data-id: config-sdk.yml
            group: DEFAULT_GROUP
            refresh: true
          - data-id: config-sdk-server.yml
            group: DEFAULT_GROUP
            refresh: true
          - data-id: config-log.yml
            group: DEFAULT_GROUP
            refresh: true
          - data-id: config-job.yml
            group: DEFAULT_GROUP
            refresh: false
          - data-id: config-mq.yml
            group: DEFAULT_GROUP
            refresh: false
          - data-id: config-flyway.yml
            group: DEFAULT_GROUP
            refresh: false
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://prod-mysql:3306/jjb_saas_safety_eval?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
    username: root
    password: Mysql@zcloud33080
  redis:
    host: prod-redis
    port: 6379
    password: Zcloud@zcloud2026
    database: 0
    timeout: 10000
    lettuce:
      pool:
        max-active: 16
        max-idle: 8
        min-idle: 4
        max-wait: -1

dubbo:
  registry:
    address: nacos://prod-nacos:8848
    parameters:
      namespace: jjb-dragon-facade
  protocol:
    port: 20895

dragon:
  gateway:
    baseurl: http://jjb-saas-gateway
    res: http://jjb-saas-gateway
    is-system: 'false'
    system-url: http://jjb-saas-system

logging:
  level:
    org.qinan.safetyeval: info
