dev.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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
  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://pan.baidu.com/share/qrcode?w=300&h=300&url=
  60. ;网站前台配置
  61. [web]
  62. port = 8089
  63. debug = True
  64. max_buffer_size = 210763776
  65. process = 0
  66. url = http://192.168.15.10:8089/
  67. originurl = http://192.168.15.10:8089/origin?id=
  68. ;微信小程序配置
  69. [weixinApp]
  70. appid = 1
  71. secret = 1
  72. login = https://api.weixin.qq.com/sns/jscode2session