techhero-gateway-service.yml 4.02 KB
Newer Older
1 2 3 4
server:
  tomcat:
    max-threads: 500 # Maximum amount of worker threads.
    min-spare-threads: 50 # Minimum amount of worker threads
Administrator committed
5
spring:
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
  datasource:
    url: jdbc:mysql://119.96.87.17:30101/ksfw_dev?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true #jdbc:oracle:thin:@47.105.130.127:9638:orcl
    driver-class-name: com.mysql.jdbc.Driver #oracle.jdbc.OracleDriver
    username: ksfw_dev #ENC(25fc8c2d2cff6e142af36d4cd89f2bc0)
    password: a3Nmd19kZXY= #ENC(502aaeb4e3e6be41b742a448fab59864b4271effb5652fddf144e02b67d8ea04)
    keep-alive-time: 30000
    hikari:
      minimum-idle: 1
      maximum-pool-size: 5
      idle-timeout: 600000
      max-lifetime: 1500000
      connection-test-query: select 1 #select 1 from dual
  redis:
    host: 192.168.50.159 #119.96.87.17 #47.104.251.199
    port: 6379 #6942
    password: techhero #ENC(08db934a254e34b5366ff337b81532ec)
    database: 14
    #host: 39.108.117.105
    #port: 6379
    #password: xh3.1415..
    #database: 2
    timeout: 10000
    lettuce:
      pool:
        max-idle: 4
        min-idle: 1
        max-active: 5
        max-wait: 10000
34
ignore:
Administrator committed
35 36
  urls:
  - /**/*.css
37
  - /getTime
Administrator committed
38 39 40 41 42 43 44 45 46 47
  - /captcha
  - /captcha1
  - /actuator/**
  - /swagger-ui.html
  - /swagger-resources/**
  - /*/v2/api-docs
  - /webjars/**
  - /captcha/**
  - /getSmBolt
  - /getSmBolt/**
48 49 50
  - /auth/**
  - /ksfw/common/**
  - /ksfw/plan-enrollment/**
51
  #- /ksfw/user/**
52 53 54 55
  - /ksfw/user/user-login-bind-relation/**
  - /ksfw/user/user-submit-score/get-render
  - /ksfw/score/studentScore/scoreQueryDataValid
  - /ksfw/score/studentScore/getKfResult
Administrator committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
  - /refresh/**
  - /doc.html
  - /zipkin/**
  - /**/diagram-viewer/**
  - /**/editor-app/**
  - /**/js/**
  - /**/lib/**
  - /favicon.ico
  - /lib.js/**
  - /**/model-list.html
  - /**/modeler.html
  - /**/modeler.html***
  - /**/modeler**/**
  - /**/*model*/**
  - /**/*.js
  - /**/*.html
  - /**/*.htm
  - /**/*htm*/**
  - /**/service/editor/**
  - /admin/files/**
76
  - /admin/user/**
Administrator committed
77 78
  - /**/admin/files/**
  - /admin/user/checkPasswordInDenLu
79
  - /personalBack/getPhoneCode
80 81 82 83
  - /ksfw/suggestion/ad-scene/**
  - /ksfw/plan-enrollment/v2/enroll-node-timeline/**
  - /ksfw/plan-enrollment/v2/enroll-notice/**
  - /ksfw/plan-enrollment/v2/enroll-question-answer/**
84
  digest:
85
    disableSign: true
86
    secret: 68d1ec5480a7a99b268fbab5bf21d515
87
    health: /actuator/health
88
    noOpenidUrls:
89 90
    - /ksfw/user/user-login-bind-relation/getWxOpenIdByJsCode
    - /getTime
91
    noTimeUrls:
92
    - /getTime
Administrator committed
93 94 95 96 97
swagger:
  client:
    - techhero-user-service
    - techhero-dlkkx-service
# 关闭默认路由
98 99
#zuul:
 # ignoredServices: '*'
Administrator committed
100
zuul:
101 102 103 104
  host:
    socket-timeout-millis: 60000
    connect-timeout-millis: 60000
  ratelimit:
105
    key-prefix: lhlxRequestLimit
106 107 108
    enabled: true
    repository: redis  #对应存储类型(用来存储统计信息)
    behind-proxy: true  #代理之后
109 110 111 112 113
    default-policy-list: #可选 - 针对所有的路由配置的策略,除非特别配置了policies
      - limit: 2 #可选 - 每个刷新时间窗口对应的请求数量限制
#        quota: 1 #可选-  每个刷新时间窗口对应的请求时间限制,接口的耗时时间(秒)
        refresh-interval: 60 # 刷新时间窗口的时间,默认值 (秒)
        type: #可选 限流方式
114
          - url_pattern=/ksfw/score/studentScore/scoreQuery
115
      - limit: 3
116 117
        refresh-interval: 60
        type:
118
          - url_pattern=/ksfw/score/studentScore/lqQuery   
119
  
Administrator committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
notencrypt:
  reqUrls:
    - /captcha
    - /captcha1
    - /actuator/**
    - /swagger-ui.html
    - /swagger-resources/**
    - /*/v2/api-docs
    - /webjars/**
    - /getSmBolt
    - /report/tb-template/save
    - /report/tb-template/update
    - /sso/token
    - /auth/personalBack/getPhoneCode
  respUrls:
    - /captcha
    - /captcha1
    - /actuator/**
    - /swagger-ui.html
    - /swagger-resources/**
    - /*/v2/api-docs
    - /webjars/**
    - /getSmBolt
    - /report/tb-template/save
    - /report/tb-template/update
    - /download
    - /sso/token
    - /auth/personalBack/getPhoneCode