demeter.conf 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [base]
  2. [setting]
  3. name = 农小盒
  4. ;园区默认id,如有cookie,此处的值会自动变成cookie的值
  5. farm = 1
  6. site = http://www.nongxiaohe.com/
  7. copyright = 2017 nongxiaohe.com v1.0.0
  8. [gateway]
  9. ;暂时写在这里 网关对应园区id 这里从数据库里读取
  10. gateway = 1
  11. [db]
  12. rdb = postgresql
  13. tsdb = influxdb
  14. [mqtt]
  15. host = 0.0.0.0
  16. ;host = iot-emq
  17. port = 1883
  18. username = admin
  19. password = public
  20. timeout = 60
  21. ;topic定义
  22. topic = method/type/gateway/device
  23. [postgresql]
  24. host = 0.0.0.0
  25. ;host = iot-pgsql
  26. port = 5432
  27. username = postgres
  28. password = 123456
  29. dbname = nongxiaohe
  30. prefix = demeter
  31. ;允许自动建表
  32. create = True
  33. [influxdb]
  34. host = 0.0.0.0
  35. ;host = iot-influx
  36. port = 8086
  37. username = root
  38. password = root
  39. dbname = nongxiaohe
  40. prefix = demeter
  41. ;后台配置
  42. [admin]
  43. port = 8087
  44. debug = True
  45. ;请求的buffersize
  46. max_buffer_size = 210763776
  47. ;子进程
  48. process = 0
  49. ;top菜单的数据来源
  50. top = farm