env.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 = iot-emq
  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,status,log
  20. [postgresql]
  21. host = iot-pgsql
  22. port = 5432
  23. username = postgres
  24. password = 123456
  25. dbname = xinnongbaohe
  26. prefix = demeter
  27. ;允许自动建表
  28. create = True
  29. [influxdb]
  30. host = iot-influx
  31. port = 8086
  32. username = root
  33. password = root
  34. dbname = xinnongbaohe
  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://www.xinnongbaohe.com:8088/device
  53. url = http://v3.xinnongbaohe.com/device
  54. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  55. mobile = True
  56. ;网站前台配置
  57. [web]
  58. port = 8089
  59. debug = True
  60. max_buffer_size = 210763776
  61. process = 0
  62. ;url = http://www.xinnongbaohe.com:8089/
  63. ;farmurl = http://www.xinnongbaohe.com:8089/farm?id=
  64. url = http://www.xinnongbaohe.com/
  65. farmurl = http://farm.xinnongbaohe.com/?id=
  66. originurl = http://s.xinnongbaohe.com/?id=