dev.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [base]
  2. [setting]
  3. name = 新农宝盒
  4. ;园区默认id,如有cookie,此处的值会自动变成cookie的值
  5. farm = 1
  6. site = http://www.xinnongbaohe.com/
  7. copyright = 2017 xingnongbaohe.com v1.0.0
  8. [db]
  9. rdb = postgresql
  10. tsdb = influxdb
  11. [mqtt]
  12. host = 0.0.0.0
  13. port = 1883
  14. username = admin
  15. password = public
  16. timeout = 60
  17. ;topic定义
  18. topic = method/type/gateway/device
  19. sub = pic,sensor,control,power
  20. [postgresql]
  21. host = 0.0.0.0
  22. port = 5432
  23. username = postgres
  24. password = 123456
  25. dbname = nongxiaohe
  26. prefix = demeter
  27. ;允许自动建表
  28. create = True
  29. [influxdb]
  30. host = 0.0.0.0
  31. port = 8086
  32. username = root
  33. password = root
  34. dbname = nongxiaohe
  35. prefix = demeter
  36. ;后台配置
  37. [admin]
  38. port = 8087
  39. debug = True
  40. ;请求的buffersize
  41. max_buffer_size = 210763776
  42. ;子进程
  43. process = 0
  44. ;top菜单的数据来源
  45. top = farm
  46. ;前台配置
  47. [front]
  48. port = 8088
  49. debug = True
  50. max_buffer_size = 210763776
  51. process = 0
  52. url = http://192.168.15.10:8088/device
  53. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  54. mobile = True
  55. ;网站前台配置
  56. [web]
  57. port = 8089
  58. debug = True
  59. max_buffer_size = 210763776
  60. process = 0
  61. url = http://192.168.15.10:8089/
  62. farmurl = http://192.168.15.10:8089/farm?id=