# mjava-pro 生产配置模板
# 复制为 application-prod.yml 填入真实值；真实文件被 .gitignore 排除

server:
  port: 9010
  servlet:
    context-path: /api/pro

spel:
  scheduling: true
  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

# mjava-pro 自身的宜搭入口凭据（访问"应用表"用）
aliwork:
  appType: ${ALIWORK_APP_TYPE}
  systemToken: ${ALIWORK_SYSTEM_TOKEN}

# 钉钉应用凭据（取 accessToken 访问宜搭 OpenAPI）
dingtalk:
  agentId: ${DINGTALK_AGENT_ID}
  appKey: ${DINGTALK_APP_KEY}
  appSecret: ${DINGTALK_APP_SECRET}
  corpId: ${DINGTALK_CORP_ID}

# 租户注册表
tenant:
  registry:
    formUuid: ${TENANT_REGISTRY_FORM_UUID}
    ttlSeconds: 600
    failFast: true

# 请求鉴权（生产建议开启）
mjava:
  auth:
    enabled: true
    secret: ${AUTH_SECRET}
    window: 300
    nonce-cache-size: 10000
