techhero-gateway-test.yml 5.42 KB
Newer Older
Administrator committed
1 2 3 4
zuul:
  ribbon:
    eager-load:
      enabled: true
5
      clients: techhero-auth,techhero-base-exam,techhero-component-workflow,techhero-base-system,techhero-project-theme,techhero-project-emergencycommand,techhero-project-visualization,techhero-preventioncheat,techhero-component-message,techhero-component-task,techhero-component-websocket,techhero-component-oss,techhero-project-track,techhero-project-inspection,techhero-base-datagovern,techhero-project-verification,techhero-front-server
Administrator committed
6
  ignoredServices: '*'
7
  host:
8 9
    connect-timeout-millis: 60000
    socket-timeout-millis: 60000
10 11 12 13 14 15 16

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
17
            timeoutInMilliseconds: 200000  #设置API网关中路由转发请求的HystrixCommand执行超时时间
18
ribbon:
19 20
  ReadTimeout: 60000
  ConnectTimeout: 60000
21 22
  MaxAutoRetries: 1
  MaxAutoRetriesNextServer: 1
23
 
Administrator committed
24
  host:
25 26
    connect-timeout-millis: 60000
    socket-timeout-millis: 60000
Administrator committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40

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

45 46 47
gateway:
  allowed:
    origins:
48
      - "*"
49 50
      - http://139.224.65.183:18000
      - http://139.224.65.183:18005
51

52 53
ignore:
  urls:
54
    - /insp/rest/record/receivedMessage
55
    - /oss/**
56
    - /system/open/server/permission/getSession**
57
    - /system/fileForward/**
58
    - /system/login/resetPassword
59
    - /login/updatePassWord
60
    - /message/esms/sendVerifCode/**  #首页忘记密码获取短信验证码接口
61 62 63 64 65 66 67
    - /system/login/updatePwdForClient
    - /auth/**
    - /swagger/api-docs
    - /swagger-resources/**
    - /swagger-ui.html
    - /*/v2/api-docs
    - /webjars/**
68 69
    - /emerycommand/open/terminal/**
    - /emerycommand/open/zh/meeting/**
70 71 72
    - /emerycommand/open/zh/esms/sendVerifCode/**
    - /emerycommand/open/zh/file/getFileVersion
    - /emerycommand/open/zh/msg
73
    - /emerycommand/open/zh/qr/checkIn/*
74
    - /emerycommand/open/zh/queue/sendAlarmQueueMsg
75 76 77
    - /emerycommand/appCommandTask/uploadTaskFile/**
    - /emerycommand/commandTask/saveReportData/**
    - /emerycommand/commandTask/selectReportData/**
78
    - /emerycommand/onlinefill/rest/**
79
    - /emerycommand/client/rest/web/**
80
    - /emerycommand/open/zh/login/getLoginPlan/* #应急指挥客户端考试计划列表
81
    - /template/addr
82 83 84
    - /socket/**
    - /visualization/open/**
    - /visualization/open/switchUrl/overview**
85
    - /zuul/emerycommand/demo/**
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
    - /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测试使用
101
    # - /emerycommand/wjdc/rest/djrxx/getDjrxxData/*
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    - /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/** #认证用户查询信息
120
    - /exam/currentExamClass/exportPDF #导出考场确认单
121 122
    - /system/login/checkAccount/**  #校验用户名
    - /exam/wechat/**    #微信小程序调用接口
123
    - /system/login/clientCheckPassword/**   #客户端校验是否为初始密码
124
    - /track/open/tag/bind/**   #电子标签与吊牌绑定
125
    - /track/open/down/package/**   #离线数据包下载
126
    - /track/transportTask/packageReport #app出入库任务上报
127
    - /track/open/session/** #设备状态考试场次接口
128
    - /track/transportTask/packageStatus #试卷包状态查询
129
    - /track/transportTask/testInsert #手动测试上报
130
    - /track/open/warn/** #预警相关
131
    - /verification/api/Login/** # 身份认证获取token
132
    - /insp/open/**
133 134 135
    - /insp/rest/meetingUser/isPost #巡查用户岗位查询
    - /track/transportTask/pageOpen/** #test
    - /track/transportTask/testTrack/** # test track
136 137 138
    - /exam/assert/repair/downloadTemplate  # 报修单模板下载
    - /exam/assert/repair/uploadExcel  # 报修单模板导入