dev.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [base]
  2. [setting]
  3. ;以下几个配置都是云平台生成
  4. ;农场名称
  5. name = 新农宝盒
  6. ;农场id
  7. farm = 1
  8. ;农场站点
  9. site = http://www.xinnongbaohe.com/
  10. copyright = 2017 xingnongbaohe.com v1.0.0
  11. [db]
  12. rdb = postgresql
  13. tsdb = influxdb
  14. [postgresql]
  15. host = 0.0.0.0
  16. port = 5432
  17. username = postgres
  18. password = 123456
  19. dbname = xinnongbaohe
  20. prefix = demeter
  21. ;允许自动建表
  22. create = True
  23. [influxdb]
  24. host = 0.0.0.0
  25. port = 8086
  26. username = root
  27. password = root
  28. dbname = xinnongbaohe
  29. prefix = demeter
  30. [redis]
  31. host = 0.0.0.0
  32. password = dm_redis_123
  33. port = 6379
  34. name = eros
  35. prefix = eros_
  36. [mqtt]
  37. host = 0.0.0.0
  38. port = 1883
  39. username = admin
  40. password = public
  41. timeout = 60
  42. ;topic定义
  43. topic = method/type/gateway/device
  44. sub = pic,sensor,control,power
  45. ;后台配置
  46. [admin]
  47. port = 8087
  48. debug = True
  49. ;请求的buffersize
  50. max_buffer_size = 210763776
  51. ;子进程
  52. process = 0
  53. ;定义后台父级菜单
  54. menu_parent = 农场管理:,设备管理:
  55. ;定义后台子级菜单
  56. menu_child = 基础资料:/farm/info?id=1,用户管理:/farm/user,产品管理:/farm/product,地块管理:/work/land,农事管理:/work/work;设备列表:/device/info,设备分组:/device/group
  57. ;cookie
  58. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  59. login_url = /user/login
  60. ;是否使用安全cookie
  61. xsrf_cookies = True
  62. ;前台配置
  63. [front]
  64. port = 8088
  65. debug = True
  66. max_buffer_size = 210763776
  67. process = 0
  68. url = http://192.168.33.10:8088/device
  69. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  70. mobile = True