dev.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 = 0.0.0.0
  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 = 0.0.0.0
  25. port = 5432
  26. username = postgres
  27. password = 123456
  28. dbname = nongxiaohev1
  29. prefix = demeter
  30. ;允许自动建表
  31. create = True
  32. [influxdb]
  33. host = 0.0.0.0
  34. port = 8086
  35. username = root
  36. password = root
  37. dbname = nongxiaohev1
  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://192.168.15.10:8088/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. ;网站前台配置
  63. [web]
  64. port = 8089
  65. debug = True
  66. max_buffer_size = 210763776
  67. process = 0
  68. url = http://192.168.15.10:8089/
  69. originurl = http://192.168.15.10:8089/origin?id=
  70. ;微信小程序配置
  71. [weixinApp]
  72. appid = wxf0a528da6a913aa1
  73. secret = 20a4478017a8dffa3c9271041b13dc0a
  74. login = https://api.weixin.qq.com/sns/jscode2session