application-local.yml 2.25 KB
Newer Older
Administrator committed
1
spring:
2
  servlet:
Administrator committed
3 4 5
    multipart:
      enabled: true
      max-file-size: 300MB
6
      max-request-size: 300MB
7 8 9 10 11 12 13 14 15 16 17 18
  rabbitmq:
    host: dev-env
    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)

19 20 21 22 23 24 25 26 27 28 29
      
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
30 31
        connectTimeout: 10000
        readTimeout: 10000
32 33 34 35 36
  compression:
    request:
      enabled: true
    response:
      enabled: true
37

38 39 40 41 42 43 44 45 46
# yml
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 15000

47
ribbon:
48 49
  ReadTimeout: 10000
  ConnectTimeout: 10000
50
  eureka:
51
    enabled: true
52
  httpclient:
53
    enabled: false
54
  okhttp:
55
    enabled: true
56 57
  eager-load:
    enabled: true
58
    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
59

60

61 62 63 64
tomcat:
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
65 66
  accept-count: 10

67
token:
68 69
    refreshTokenValiditySeconds:  7200
    accessTokenValiditySeconds:   3600
70
    remainingTime:  3480
71 72 73 74
# ignore:
#   urls:
#       - /config/bus/refresh
#       - /loginOut
75

76 77 78 79 80 81
#   放行白名单
secure:
  ignore:
    urls: #配置白名单路径
      - /actuator/**
      - /auth/**
82
      - /rsa/**
83
      - /token/**
84
      - /login/** 
85 86
      - /weChat/login
      - /identification/weChat/login
87 88 89 90
      - /gateway/**
      - /permission/white/**
      - /basic/code/**

91 92 93 94 95 96 97 98
# 微信
weChat:
  # 凭证
  token:
    # 小程序唯一凭证,即 AppID
    appid: wxefc586aad11c0fe4
    # 小程序唯一凭证密钥,即 AppSecret
    secret: d491fa6dac431f6a31d6609478ddd071
99
    # 订阅消息模板
100
    templateId: EXqoBaJ0QvDsYGECL2yP8SJ0xN6T_iO-rU29JxMQDA4
101