env.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. sub = pic,sensor
  23. [postgresql]
  24. host = iot-pgsql
  25. port = 5432
  26. username = postgres
  27. password = 123456
  28. dbname = nongxiaohe
  29. prefix = demeter
  30. ;允许自动建表
  31. create = True
  32. [influxdb]
  33. host = iot-influx
  34. port = 8086
  35. username = root
  36. password = root
  37. dbname = nongxiaohe
  38. prefix = demeter
  39. ;后台配置
  40. [admin]
  41. port = 8087
  42. debug = True
  43. ;请求的buffersize
  44. max_buffer_size = 210763776
  45. ;子进程
  46. process = 0
  47. ;top菜单的数据来源
  48. top = farm
  49. ;前台配置
  50. [front]
  51. port = 8088
  52. debug = True
  53. xsrf_cookies = False
  54. ;请求的buffersize
  55. max_buffer_size = 210763776
  56. ;子进程
  57. process = 0
  58. url = http://192.168.15.10:8088/device
  59. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  60. [web]
  61. port = 8089
  62. debug = True
  63. max_buffer_size = 210763776
  64. process = 0
  65. url = http://192.168.15.10:8089/
  66. originurl = http://s.xinnongbaohe.com/?id=
  67. ;微信小程序配置
  68. [weixinApp]
  69. appid = 1
  70. secret = 1
  71. login = https://api.weixin.qq.com/sns/jscode2session