app.test.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. neck_ring_estrus_warning: "*/50 * * * * ?" # 脖环预警(每50分钟执行一次
  36. neck_ring_health_warning: "*/50 * * * * ?" # 脖环预警(每50分钟执行一次
  37. update_pen_behavior: "0 45 * * * ?" # 更新栏舍行行为数据
  38. update_pen_behavior_daily: "0 05 2 * * ?" # 更新栏舍饲养监测数据
  39. mqtt:
  40. broker: "kptyun.com:1983"
  41. username: "kptmqtt"
  42. password: "kepaiteng"
  43. sub_topic: "/user/heatwatch/neckring/post"
  44. qos: 0
  45. retain: false
  46. keep_alive: 60
  47. connect_timeout: 10
  48. auto_reconnect: true
  49. reconnect_interval: 10
  50. work_number: 1
  51. merge_data_ticker: 2 # 2分钟合并一次数据