app.test.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. redis_setting:
  14. cache_redis:
  15. addr: 47.92.95.119:6389'
  16. db: 0
  17. requirepass: "root"
  18. expiry: 120
  19. jwt_secret: "sUd7j%UfJMt59ywh"
  20. cache_key_suffix: "gmym"
  21. cron:
  22. crontab_start_run: false
  23. update_cow_info: "0 01 1 * * ?"
  24. generate_work_order: "0 05 1 * * ?"
  25. immunization_plan: "0 10 1 * * ?"
  26. same_time_plan: "0 15 1 * * ?"
  27. update_same_time: "0 20 1 * * ?"
  28. system_basic_crontab: "0 25 1 * * ?"
  29. cow_pregnant: "0 00 15 * * ?"
  30. neck_ring_estrus: "0 45 * * * ?" # 更新脖环发情数据
  31. neck_ring_merge: "*/5 * * * * ?" # 合并脖环原始2小时数据(5分钟)
  32. neck_ring_calculate: "*/10 * * * * ?" # 计算脖环数据
  33. mqtt:
  34. broker: "kptyun.com:1983"
  35. username: "kptmqtt"
  36. password: "kepaiteng"
  37. sub_topic: "/user/heatwatch/neckring/post"
  38. qos: 0
  39. retain: false
  40. keep_alive: 60
  41. connect_timeout: 10
  42. auto_reconnect: true
  43. reconnect_interval: 10
  44. work_number: 1
  45. merge_data_ticker: 2 # 2分钟合并一次数据