env.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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,control,power,status,log
  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://api.nongxiaohe.com/device
  59. qrcode = https://api.nongxiaohe.com/farm/qrcode?url=
  60. ;qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  61. qrcode_create = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  62. [web]
  63. port = 8089
  64. debug = True
  65. max_buffer_size = 210763776
  66. process = 0
  67. url = http://www.nongxiaohe.com/
  68. originurl = http://www.nongxiaohe.com/origin?id=
  69. ;微信小程序配置
  70. [weixinApp]
  71. appid = wxf0a528da6a913aa1
  72. secret = 20a4478017a8dffa3c9271041b13dc0a
  73. login = https://api.weixin.qq.com/sns/jscode2session