zuul:
  ribbon:
    eager-load:
      enabled: true
      clients: techhero-auth,techhero-base-supportplatform,techhero-base-exam,techhero-base-system,techhero-project-emergencycommand,techhero-project-theme,techhero-permission,techhero-base-basicdata,techhero-preventioncheat,techhero-component-message,techhero-component-websocket,techhero-project-track,techhero-project-inspection,techhero-base-datagovern,techhero-project-verification
  ignoredServices: '*'
  host:
    connect-timeout-millis: 2000000
    socket-timeout-millis: 2000000

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 60000  #设置API网关中路由转发请求的HystrixCommand执行超时时间
ribbon:
  ReadTimeout: 300000
  ConnectTimeout: 300000
  MaxAutoRetries: 1
  MaxAutoRetriesNextServer: 1
 
  host:
    connect-timeout-millis: 20000
    socket-timeout-millis: 20000

security:
  encode:
    key: '1234567887654321' #必须16位
  validate:
    code: true
    preview: false
  sessions: stateless
  oauth2:
    client:
      client-id: techhero
      client-secret: techhero
    resource:
      jwt:
         key-uri: http://192.168.0.216:10420/oauth/token_key #解析jwt令牌所需要密钥的地址
    authorization:
      check-token-access: http://techhero-auth/oauth/check_token

gateway:
  allowed:
    origins:
      - http://119.96.87.17:18098 # 基础数据
      - https://test.techhero.vip:10309
      - https://test.techhero.vip:10001
      - https://test.techhero.vip:18085
      - https://test.techhero.vip:10102
      - https://test.techhero.vip:10201
      - https://test.techhero.vip:10301
      - https://test.techhero.vip:10503
      - https://test.techhero.vip:10611
      - https://test.techhero.vip:10303
      - https://test.techhero.vip:10401
      - https://test.techhero.vip:10610
      - https://test.techhero.vip:10612 #身份认证

ignore:
  urls:
    - /insp/rest/record/receivedMessage
    - /oss/**
    - /system/open/server/permission/getSession**
    - /system/fileForward/**
    - /system/login/resetPassword
    - /message/esms/sendVerifCode/**  #首页忘记密码获取短信验证码接口
    - /system/login/updatePwdForClient
    - /auth/**
    - /swagger/api-docs
    - /swagger-resources/**
    - /swagger-ui.html
    - /*/v2/api-docs
    - /webjars/**
    - /emerycommand/open/terminal/**
    - /emerycommand/open/zh/meeting/**
    - /emerycommand/open/zh/esms/sendVerifCode/**
    - /emerycommand/open/zh/file/getFileVersion
    - /emerycommand/open/zh/msg
    - /emerycommand/open/zh/qr/checkIn/*
    - /emerycommand/open/zh/queue/sendAlarmQueueMsg
    - /socket/**
    - /visualization/open/**
    - /visualization/open/switchUrl/overview**
    - /zuul/emerycommand/demo/**
    - /emerycommand/demo/**
    - /exam/open/** #基础数据开放接口规则以open开头
    - /basicdata/zh/rest/**/exportExecl  #导出表数据
    - /basicdata/dc/rest/**/exportExecl
    - /basicdata/dc/rest/**/downloadTemplate  #下载表格模板
    - /basicdata/zh/rest/**/downloadTemplate
    - /basicdata/dc/rest/**/uploadExcel  #Excel导入数据
    - /basicdata/zh/rest/**/uploadExcel
    - /preventioncheat/zbfk/ksjh/record/export #作弊防控导出相关
    - /preventioncheat/zbfk/ksjh/eaxmPlan/export
    - /preventioncheat/zbfk/sbgl/device/export
    - /preventioncheat/zbfk/xyxh/cheat/export
    - /platform/vc/**  #验证码
    - /system/vc/** #验证码
    - /message/**  #msg测试使用
    - /emerycommand/wjdc/rest/djrxx/getDjrxxData/*
    - /basicdata/dc/rest/dcKsjhb/queryAll  #考试计划列表
    - /exam/dc/rest/dcKsjhb/queryAll  #考试计划列表
    - /exam/dc/rest/dcKsjhb/getExamPlan  #登录页考试计划, 按时间排序
    - /emerycommand/wjdc/rest/wjmb/uploadFile
    - /system/parent/register # 家长注册
    - /system/parent/login # 家长登录
    - /system/parent/setNewPwdByUserName # 家长忘记密码
    - /exam/zh/rest/**/exportExcel  #导出表数据
    - /exam/dc/rest/**/exportExcel
    - /exam/dc/rest/**/downloadTemplate  #下载表格模板
    - /exam/zh/rest/**/downloadTemplate
    - /exam/dc/rest/**/uploadExcel  #Excel导入数据
    - /exam/zh/rest/**/uploadExcel
    - /exam/currentExamClass/importBindingExcel  #导入考场编排
    - /exam/currentExamClass/downloadTemplate/**/**  #下载考场编排模板
    - /exam/currentExamClass/exportExcel  #导出考场编排excel
    - /exam/zh/rest/zhSssbxxb/downloadTemplate/**
    - /exam/GetSfrzUserInfo/** #认证用户查询信息
    - /system/login/checkAccount/**  #校验用户名
    - /exam/wechat/**    #微信小程序调用接口
    - /system/login/clientCheckPassword/**   #客户端校验是否为初始密码
    - /track/open/tag/bind/**   #电子标签与吊牌绑定
    - /track/open/down/package/**   #离线数据包下载
    - /track/transportTask/packageReport #app出入库任务上报