/**
 * @description Workcase 运行时配置 (Docker 部署用)
 * 
 * 域名: https://192.168.130.131
 * 修改此文件后重启容器生效
 */

window.APP_RUNTIME_CONFIG = {
  // 环境标识
  env: 'production',

  // API 配置
  api: {
    baseUrl: '/urban-lifeline',
    timeout: 30000
  },

  // 应用基础路径
  baseUrl: '/workcase/',

  // 文件配置
  file: {
    downloadUrl: '/urban-lifeline/file/download/',
    uploadUrl: '/urban-lifeline/file/upload',
    maxSize: {
      image: 5,
      video: 100,
      document: 10,
      default: 100 * 1024 * 1024
    },
    acceptTypes: {
      image: 'image/*',
      video: 'video/*',
      document: '.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx'
    }
  },

  // Token 配置
  token: {
    key: 'token',
    refreshThreshold: 300000
  },

  // 公共资源路径
  publicImgPath: '/workcase/img',
  publicWebPath: '/workcase',

  // 单点登录配置
  sso: {
    platformUrl: 'https://192.168.130.131/platform/',
    workcaseUrl: 'https://192.168.130.131/workcase/',
    biddingUrl: 'https://192.168.130.131/bidding/'
  },

  // AES 加密密钥
  aesSecretKey: 'MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=',

  // Jitsi 视频会议配置
  jitsi: {
    serverUrl: 'https://demo-jitsi.tensorgrove.com'
  },
  // AI 配置
  ai: {
    defaultAgentId: '17678420499370001'  // 默认 AI Agent ID
  },

  // 功能开关
  features: {
    enableDebug: false,
    enableMockData: false
  }
};
