# mjava-com 生产配置模板
server:
  port: 9020
  servlet:
    context-path: /api/com

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-com 自身宜搭入口凭据（访问权限表单用）
aliwork:
  appType: ${ALIWORK_APP_TYPE}
  systemToken: ${ALIWORK_SYSTEM_TOKEN}

# 钉钉应用凭据
dingtalk:
  agentId: ${DINGTALK_AGENT_ID}
  appKey: ${DINGTALK_APP_KEY}
  appSecret: ${DINGTALK_APP_SECRET}
  corpId: ${DINGTALK_CORP_ID}

com:
  caller:
    registry:
      formUuid: ${CALLER_REGISTRY_FORM_UUID}
      ttlSeconds: 300
  actions:
    enabled:
      # 按需启用白名单；为空=不做全局限制，仅看调用方 allowedActions
      # - dingtalk.user.get
      # - aliwork.form.save
