techhero-gateway-local.yml 5.24 KB
Newer Older
Administrator committed
1 2 3 4
zuul:
  ribbon:
    eager-load:
      enabled: true
5
      clients: techhero-auth,techhero-base-system,techhero-base-exam,techhero-base-transdata,techhero-project-theme,techhero-project-emergencycommand,techhero-project-track,techhero-project-visualization,techhero-preventioncheat,techhero-component-task,techhero-component-oss,techhero-component-websocket,techhero-component-message,techhero-component-workflow,techhero-project-inspection,techhero-examsite-inspection
Administrator committed
6
  ignoredServices: '*'
7 8 9 10
  #routes:
    #resource:
     # path: /ws/**
     # serviceId: techhero-component-websocket
Administrator committed
11
  host:
12 13
    connect-timeout-millis: 2000000
    socket-timeout-millis: 2000000
Administrator committed
14

15 16 17 18 19 20
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
21
            timeoutInMilliseconds: 600000  #设置API网关中路由转发请求的HystrixCommand执行超时时间
22
   
23

24

25
ribbon:
26 27
  ConnectTimeout: 300000 #设置路由转发请求的时候,创建请求连接的超时时间
  ReadTimeout: 300000  #用来设置路由转发请求的超时时间
28

Administrator committed
29 30 31 32 33 34 35 36 37 38 39
security:
  encode:
    key: '1234567887654321' #必须16位
  validate:
    code: true
    preview: false
  sessions: stateless
  oauth2:
    client:
      client-id: techhero
      client-secret: techhero
40 41
    resource:
      jwt:
42
        key-uri: http://127.0.0.1:10420/oauth/token_key #解析jwt令牌所需要密钥的地址
Administrator committed
43
    authorization:
44
      check-token-access: http://techhero-auth/oauth/check_token
45 46
gateway:
  allowed:
47
    origins:
48
      - '*'
49 50 51
      - https://account.aliyun.com
      - https://datav.aliyun.com
      - http://datav.aliyun.com
52
      - http://cdn-service-datav.aliyun.com
Administrator committed
53 54
ignore:
  urls:
55
    - /oss/**
56
    - /socket/socketServer/info
57
    - /system/fileForward/**
58
    - /system/login/updatePwdForClient
59
    - /system/login/resetPassword
Administrator committed
60 61 62 63 64 65
    - /auth/**
    - /swagger/api-docs
    - /swagger-resources/**
    - /swagger-ui.html
    - /*/v2/api-docs
    - /webjars/**
66
    - /emerycommand/open/**
67
    - /emerycommand/appCommandTask/uploadTaskFile/**
68
    - /emerycommand/open/zh/msg
69
    - /emerycommand/commandTask/saveReportData/**
70
    - /emerycommand/commandTask/selectReportData/**
71
    - /emerycommand/commandTask/save/registration/**
72
    - /emerycommand/commandTask/save/application/**
73
    - /emerycommand/commandTask/save/review/**
74
    - /emerycommand/commandTask/save/refund/**
75
    - /emerycommand/onlinefill/rest/**
76
   # - /socket/**
77
    - /visualization/open/**
78
    - /visualization/open/switchUrl/overview**
79
    - /exam/open/** #基础数据开放接口规则以open开头
80
    - /zuul/emerycommand/demo/**
81
    - /emerycommand/demo/**
Administrator committed
82 83 84 85 86 87 88 89 90 91
    - /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
92
    - /platform/vc/**  #验证码
93
    - /system/vc/** #验证码
94
    - /message/**  #msg测试使用
95
    - /emerycommand/wjdc/rest/djrxx/getDjrxxData/*
96
    - /basicdata/dc/rest/dcKsjhb/queryAll  #考试计划列表
97
    - /exam/dc/rest/dcKsjhb/queryAll  #考试计划列表
98
    - /exam/dc/rest/dcKsjhb/getExamPlan  #登录页考试计划, 按时间排序
99 100 101
    - /emerycommand/wjdc/rest/wjmb/uploadFile
    - /system/parent/register # 家长注册
    - /system/parent/login # 家长登录
102
    - /system/parent/setNewPwdByUserName # 家长忘记密码
103 104
    - /exam/zh/rest/**/exportExcel  #导出表数据
    - /exam/dc/rest/**/exportExcel
105 106 107
    - /exam/dc/rest/**/downloadTemplate  #下载表格模板
    - /exam/zh/rest/**/downloadTemplate
    - /exam/dc/rest/**/uploadExcel  #Excel导入数据
108
    - /exam/zh/rest/**/uploadExcel
109
    - /exam/vio/rest/**/downloadTemplate   #下载缺考模板
110
    - /exam/currentExamClass/importBindingExcel  #导入考场编排
111
    - /exam/currentExamClass/downloadTemplate/**/**  #下载考场编排模板
112
    - /exam/currentExamClass/exportExcel  #导出考场编排excel
113
    - /exam/currentExamClass/exportPDF #导出考场确认单
114
    - /system/login/checkAccount/*  #校验用户名
115
    - /system/login/resetPassword   #首页未登录重置密码
116
    - /esms/sendVerifCode/*  #首页忘记密码获取短信验证码接口
117
    #- /socket/**
118
    - /exam/zh/rest/zhSssbxxb/downloadTemplate/**
119
    - /workflow/static/**
120
    - /exam/wechat/**    #微信小程序调用接口
121
    - /system/login/clientCheckPassword/**   #客户端校验是否为初始密码
122
    - /track/sjgz/rest/order/dbfImport
123
    - /track/transportTask/packageReport #app出入库任务上报
124
    - /track/transportTask/packageStatus #试卷包状态查询
125 126 127
    - /track/open/tag/bind/**   #电子标签与吊牌绑定
    - /track/open/down/package/**   #离线数据包下载
    - /track/open/session/** #设备状态考试场次接口
128
    - /track/open/warn/** #预警相关
129
    - /verification/api/Login/** # 身份认证获取token 
130
    - /insp/open/** 
131
    - /producer/hello
132
    - /insp/rest/meetingUser/isPost # 巡查用户身份验证
133
    - /track/transportTask/** #test
134
    - /system/pwd/updatePassword2
135