env.conf 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 = iot-emq
  16. port = 1883
  17. username = admin
  18. password = public
  19. timeout = 60
  20. ;topic定义
  21. topic = method/type/gateway/device
  22. [postgresql]
  23. host = iot-pgsql
  24. port = 5432
  25. username = postgres
  26. password = 123456
  27. dbname = nongxiaohe
  28. prefix = demeter
  29. ;允许自动建表
  30. create = True
  31. [influxdb]
  32. host = iot-influx
  33. port = 8086
  34. username = root
  35. password = root
  36. dbname = nongxiaohe
  37. prefix = demeter
  38. ;后台配置
  39. [admin]
  40. port = 8087
  41. debug = True
  42. ;请求的buffersize
  43. max_buffer_size = 210763776
  44. ;子进程
  45. process = 0
  46. ;top菜单的数据来源
  47. top = farm