app.test.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. app_name: kpt-pasture
  2. app_environment: test
  3. debug: true
  4. http_server_addr: ':8090'
  5. http_metrics_addr: ':23332'
  6. jwt_expire_time: 172800
  7. neck_ring_limit: 100
  8. store:
  9. show_sql: true
  10. driver_name: mysql
  11. kpt_rw: "kpt_pasture:4~H@InK6jK@tcp(47.92.95.119:3326)/kpt_pasture?charset=utf8mb4&parseTime=true&loc=Local&allowNativePasswords=true&timeout=300s&readTimeout=300s&writeTimeout=300s"
  12. kpt_migr: "kpt_pasture:4~H@InK6jK@tcp(47.92.95.119:3326)/kpt_pasture?charset=utf8mb4&parseTime=true&loc=Local&allowNativePasswords=true&timeout=300s&readTimeout=300s&writeTimeout=300s"
  13. kpt_mqtt: "kpt_mqtt:kpt_mqtt!1234@tcp(47.92.95.119:3326)/kpt_pasture?charset=utf8mb4&parseTime=true&loc=Local&allowNativePasswords=true&timeout=600s&readTimeout=600s&writeTimeout=600s"
  14. redis_setting:
  15. cache_redis:
  16. addr: 47.92.95.119:6389'
  17. db: 0
  18. requirepass: "root"
  19. expiry: 120
  20. jwt_secret: "sUd7j%UfJMt59ywh"
  21. cache_key_suffix: "gmym"
  22. cron:
  23. crontab_start_run: false
  24. update_cow_info: "0 01 1 * * ?"
  25. indicators: "0 24 10 * * ?"
  26. generate_work_order: "0 05 1 * * ?"
  27. immunization_plan: "0 10 1 * * ?"
  28. same_time_plan: "0 15 1 * * ?"
  29. update_same_time: "0 20 1 * * ?"
  30. system_basic_crontab: "0 25 1 * * ?"
  31. cow_pregnant: "0 00 15 * * ?"
  32. neck_ring_estrus: "0 45 * * * ?" # 更新脖环发情数据
  33. neck_ring_merge: "*/5 * * * * ?" # 合并脖环原始2小时数据(5分钟)
  34. neck_ring_calculate: "*/10 * * * * ?" # 计算脖环数据
  35. mqtt:
  36. broker: "kptyun.com:1983"
  37. username: "kptmqtt"
  38. password: "kepaiteng"
  39. sub_topic: "/user/heatwatch/neckring/post"
  40. qos: 0
  41. retain: false
  42. keep_alive: 60
  43. connect_timeout: 10
  44. auto_reconnect: true
  45. reconnect_interval: 10
  46. work_number: 1
  47. merge_data_ticker: 2 # 2分钟合并一次数据