app.test.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 0 23 * * ?" # 每天凌晨1点03分执行
  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. delete_old_original: "0 30 1 * * ?" # 每天凌晨1点30分执行
  31. system_basic_crontab: "0 35 1 * * ?"
  32. update_disease_to_calendar: "0 50 1 * * ?"
  33. cow_pregnant: "0 01 15 * * ?"
  34. neck_ring_estrus: "0 45 * * * *" # 每小时的45分钟执行一次
  35. neck_ring_merge: "*/60 * * * * ?" # 合并脖环原始2小时数据(5分钟)
  36. neck_ring_calculate: "*/300 * * * * ?" # 计算脖环数据
  37. neck_ring_estrus_warning: "* */30 * * * ?" # 脖环发情预警(每50分钟执行一次
  38. neck_ring_health_warning: "* */30 * * * ?" # 脖环健康预警
  39. update_pen_behavior: "0 */20 * * * ?" # 更新栏舍行为数据(20分钟执行一次)
  40. update_pen_behavior_daily: "0 50 15 * * ?" # 更新栏舍饲养监测数据
  41. update_milk_original: "0 */30 * * * ?" # 更新奶厅原始数据(每30分钟执行一次)
  42. insert_milk_daily: "0 05 02 * * ?" # 更新每日奶量和活动量数据
  43. mqtt:
  44. broker: "kptyun.com:1983"
  45. username: "kptmqtt"
  46. password: "kepaiteng"
  47. sub_topic: "/user/heatwatch/neckring/post"
  48. qos: 0
  49. retain: false
  50. keep_alive: 60
  51. connect_timeout: 10
  52. auto_reconnect: true
  53. reconnect_interval: 10
  54. work_number: 1
  55. merge_data_ticker: 2 # 2分钟合并一次数据