# mjava-mcli 生产配置模板
# 使用方式：复制为 application-prod.yml 并填入真实值；真实文件已被 .gitignore 排除

server:
  port: 9001
  servlet:
    context-path: /api/mcli

spel:
  scheduling: false       # 定时任务是否执行
  multiSource: false      # 是否多数据源配置

spring:
  datasource:
    hikari:
      connection-init-sql: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: ${DB_USERNAME}
    password: ${DB_PASSWORD}
    url: ${DB_URL}
  jpa:
    database: MYSQL
    database-platform: org.hibernate.dialect.MySQL57Dialect
  # MongoDB（若需要）
  data:
    mongodb:
      uri: ${MONGODB_URI}

# dingtalk
dingtalk:
  agentId: ${DINGTALK_AGENT_ID}
  appKey: ${DINGTALK_APP_KEY}
  appSecret: ${DINGTALK_APP_SECRET}
  corpId: ${DINGTALK_CORP_ID}
  aesKey: ${DINGTALK_AES_KEY}
  token: ${DINGTALK_TOKEN}
  operator: ${DINGTALK_OPERATOR}

# aliwork
aliwork:
  appType: ${ALIWORK_APP_TYPE}
  systemToken: ${ALIWORK_SYSTEM_TOKEN}

# integration（IAM 集成平台）
integration:
  baseUrl: ${INTP_BASE_URL}        # 不含 /iam 路径前缀
  clientId: ${INTP_CLIENT_ID}
  clientSecret: ${INTP_CLIENT_SECRET}
