application.yml 804 Bytes
Newer Older
xieshaojun's avatar
xieshaojun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
server:
  port: 9095
spring:
  application:
    name: protocol-proxy-service
  task:
    execution:
      pool:
        core-size: 20
        queue-capacity: 5
  main:
    #重复Bean允许覆盖
    allow-bean-definition-overriding: true
  configuration:
    cache-enabled: true
xieshaojun's avatar
xieshaojun committed
16 17 18 19 20
# 设备信息
device:
  # THTPP-:用户前缀
  code: HTPP-zykt-test1
  broker-password: ENC(hFtYOabihlusWfhdY6UT2ZpSzicB7hitKzyCGd1n6BDE926LPjvw0xrySgvIfT2F)
xieshaojun's avatar
xieshaojun committed
21 22 23 24 25 26
#mqtt
mqtt:
  #mqtt 是否开启
  run: ${ MQTT_RUN:true}
  connection:
    thinker:
xieshaojun's avatar
xieshaojun committed
27
      broker: tcp://39.108.185.243:1883
xieshaojun's avatar
xieshaojun committed
28 29
      clientId: ${device.code}
      username: ${device.code}
xieshaojun's avatar
xieshaojun committed
30
      cleanSession: false
xieshaojun's avatar
xieshaojun committed
31
      password: ${device.broker-password}
xieshaojun's avatar
xieshaojun committed
32 33
jasypt:
  encryptor:
xieshaojun's avatar
xieshaojun committed
34
    bean: stringEncryptor
xieshaojun's avatar
xieshaojun committed
35

xieshaojun's avatar
xieshaojun committed
36 37 38
api-limit:
  # 每秒最多请求多少次
  secondLimit: 0.1