forked from kidgrow-microservices-platform

zxh
2020-08-21 5d97b0934973737a903f45d1d89e095b2e255694
kidgrow-springcloud/kidgrow-springcloud-zuul/src/main/resources/application.yml
@@ -23,6 +23,7 @@
    prefer-ip-address: true
  client:
    serviceUrl:
#      defaultZone: http://192.168.2.240:9001/eureka/
      defaultZone: ${kidgrow.eureka.client.serviceUrl.defaultZone}
zuul:
@@ -145,6 +146,36 @@
      strip-prefix: true
      sensitive-headers: '*'
      custom-sensitive-headers: true
    reportcenter-server-routes:
      path: /reportcenter-server/**
      service-id: reportcenter-server
      strip-prefix: true
      sensitive-headers: '*'
      custom-sensitive-headers: true
    demo-aspnet-server-routes:
      path: /demoaspnetserver/**
      service-id: demo-aspnet-server
      strip-prefix: true
      sensitive-headers: '*'
      custom-sensitive-headers: true
    wechat-server-routes:
      path: /wechatserver/**
      service-id: wechat-server
      strip-prefix: true
      sensitive-headers: '*'
      custom-sensitive-headers: true
    api-evaluation:
      path: /api-evaluation/**
      service-id: boneage-evaluationcenter-server
      strip-prefix: true
      sensitive-headers: '*'
      custom-sensitive-headers: true
    api-smartbox:
      path: /api-smart/**
      service-id: smartbox-server
      strip-prefix: true
      sensitive-headers: '*'
      custom-sensitive-headers: true
  ssl-hostname-validation-enabled: false
@@ -186,6 +217,17 @@
      - /*/oauth/**
      - /actuator/health
      - /actuator/info
      - /api-file/smsChangLan/send
      - /api-user/users/doctorUserReg
      - /api-user/users/isRegUser
      - /api-user/users/passwordByPhone
      - /api-evaluation/evaluationxrayinfo/appUpload
      - /api-evaluation/evaluationxrayinfo/appSave
      - /api-file/baseUplaod
      - /api-user/users/python
#      - /api-user/syshospital/findAllByMap
#      - /api-user/sysdictionaries/findAll
#      - /api-user/sysdepartment/findListByHospitalId
    # 忽略权限鉴定
    authority-ignores:
      - /*/authority/granted/me
@@ -206,7 +248,19 @@
        /api-uaa/js/**,
        /api-user/users-anon/**,
        /login.html,
        /user/login
        /user/login,
        /api-file/smsChangLan/send,
        /api-user/users/doctorUserReg,
        /api-file/files-upload,
        /api-user/users/isRegUser,
        /api-user/users/passwordByPhone,
        /api-evaluation/evaluationxrayinfo/appUpload,
        /api-evaluation/evaluationxrayinfo/appSave,
        /api-file/baseUplaod,
        /api-user/users/python
#        /api-user/syshospital/findAllByMap,
#        /api-user/sysdictionaries/findAll,
#        /api-user/sysdepartment/findListByHospitalId
    auth:
      #开启时间戳验证
      timestampenable: false
@@ -218,7 +272,7 @@
        /api-uaa/validata/**
      urlPermission:
        #是否开启url级别权限
        enable: false
        enable: true
        #配置只进行登录认证,不进行url权限认证的api
        ignoreUrls: >
          /api-user/menus/current,
@@ -231,7 +285,7 @@
          - kidgrow
      renew:
        #是否开启token自动续签(目前只有redis实现)
        enable: false
        enable: true
        #白名单
        includeClientIds:
          - webApp