env.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. [postgresql]
  12. host = iot-pgsql
  13. port = 5432
  14. username = postgres
  15. password = 123456
  16. dbname = xinnongbaohe
  17. prefix = demeter
  18. ;允许自动建表
  19. create = True
  20. [influxdb]
  21. host = iot-influx
  22. port = 8086
  23. username = root
  24. password = root
  25. dbname = xinnongbaohe
  26. prefix = demeter
  27. [redis]
  28. host = iot-redis
  29. password = dm_redis_123
  30. port = 6379
  31. name = eros
  32. prefix = eros_
  33. [mqtt]
  34. host = iot-emq
  35. port = 1883
  36. username = admin
  37. password = public
  38. timeout = 60
  39. ;topic定义
  40. topic = method/type/gateway/device
  41. sub = pic,sensor,control,power,status,log
  42. ;后台配置
  43. [admin]
  44. port = 8090
  45. debug = True
  46. ;请求的buffersize
  47. max_buffer_size = 210763776
  48. ;子进程
  49. process = 0
  50. ;top菜单的数据来源
  51. top = farm
  52. ;前台配置
  53. [front]
  54. port = 8090
  55. debug = True
  56. max_buffer_size = 210763776
  57. process = 0
  58. ;url = http://www.xinnongbaohe.com:8090/device
  59. url = http://v3.xinnongbaohe.com/device
  60. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  61. mobile = True