application-natived.yml 2.99 KB
Newer Older
Administrator committed
1 2 3 4 5 6 7
spring:
  servlet:
    multipart:
      enabled: true
      max-file-size: 300MB
      max-request-size: 300MB
  rabbitmq:
8
    host: [fdff:1:1:1::1] 
9
    addresses : fdff:1:1:1::1
Administrator committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    port: 5672
    username: techhero
    password: techhero
    virtual-host: /framework
    listener:
      simple:
        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
    publisher-confirms: true #确认消息已发送到交换机(Exchange)
    publisher-returns: true #确认消息已发送到队列(Queue)

      
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
        connectTimeout: 10000
32
        readTimeout: 20000
Administrator committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
  compression:
    request:
      enabled: true
    response:
      enabled: true

# yml
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 15000
  threadpool:
    default:
      coreSize: 50 ##并发执行的最大线程数,默认10
      maxQueueSize: 100 ##BlockingQueue的最大队列数
      queueSizeRejectionThreshold: 80


ribbon:
  ReadTimeout: 10000
  ConnectTimeout: 10000
  eureka:
    enabled: true
  httpclient:
    enabled: false
  okhttp:
    enabled: true
  eager-load:
    enabled: true
    clients: techhero-framework-config,techhero-framework-eureka,techhero-framework-auth,techhero-platform-exam,techhero-platform-system,techhero-business-track,techhero-business-command,techhero-business-transdata,techhero-business-datagovern,techhero-business-visualization,techhero-framework-config


tomcat:
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10

token:
    refreshTokenValiditySeconds:  7200
    accessTokenValiditySeconds:   3600
    remainingTime:  3480
# ignore:
#   urls:
#       - /config/bus/refresh
#       - /loginOut

#   放行白名单
secure:
  ignore:
    urls: #配置白名单路径
      - /actuator/**
      - /auth/**
      - /rsa/**
      - /token/**
      - /login/** 
      - /weChat/login
      - /identification/weChat/login
      - /gateway/**
      - /permission/white/**
      - /basic/code/**
97
      - /examination/kwksjcxxb/downloadKsTemplate
98
      - /subject/alipay/alipayCallback
99
      - /examination/app/forgetPassword
100
      - /examination/app/sendSmsCode
101
      
Administrator committed
102 103 104 105 106 107 108 109 110 111 112 113

# 微信
weChat:
  # 凭证
  token:
    # 小程序唯一凭证,即 AppID
    appid: wxefc586aad11c0fe4
    # 小程序唯一凭证密钥,即 AppSecret
    secret: d491fa6dac431f6a31d6609478ddd071
    #小程序版本:developer为开发版;trial为体验版;formal为正式版;默认为正式版
    miniProgramState: formal
    # 订阅消息模板
114
    templateId: EXqoBaJ0QvDsYGECL2yP8RgYlef2uK44y-MA72rDVDU
Administrator committed
115 116 117 118
    #扫描小程序码跳转页面
    scanIntoPage: pages/idcard/idcard
    #小程序消息通知跳转页面
    notifyPage: pages/update/update
119 120
   
server:
121
    pictureCheck: https://68818968wt.goho.co/Segment/DetectFace