dev.conf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. [base]
  2. [setting]
  3. ;农场名称
  4. name = 新农宝盒云端服务
  5. ;农场id
  6. farm = 1
  7. ;农场站点
  8. site = http://www.xinnongbaohe.com/
  9. copyright = 2017 xingnongbaohe.com v1.0.0
  10. [db]
  11. rdb = postgresql
  12. tsdb = influxdb
  13. [postgresql]
  14. ;createdb -h localhost -p 5432 -U postgres xinnongbaohe_zeus
  15. ;CREATE DATABASE xinnongbaohe_zeus WITH OWNER = postgres ENCODING = "UTF8"
  16. host = 0.0.0.0
  17. port = 5432
  18. username = postgres
  19. password = 123456
  20. dbname = xinnongbaohe_zeus
  21. prefix = demeter
  22. ;允许自动建表
  23. create = True
  24. [influxdb]
  25. host = 0.0.0.0
  26. port = 8086
  27. username = root
  28. password = root
  29. dbname = xinnongbaohe
  30. prefix = demeter
  31. [redis]
  32. host = 0.0.0.0
  33. password = dm_redis_123
  34. port = 6379
  35. name = eros
  36. prefix = eros_
  37. [modbus]
  38. host = 192.168.33.10
  39. port = 1152
  40. [mqtt]
  41. host = 0.0.0.0
  42. port = 1883
  43. username = admin
  44. password = public
  45. timeout = 60
  46. ;topic定义
  47. topic = method/type/gateway/device
  48. sub = pic,sensor,power,status,log|control
  49. ;后台配置
  50. [admin]
  51. port = 8087
  52. debug = True
  53. ;请求的buffersize
  54. max_buffer_size = 210763776
  55. ;子进程
  56. process = 0
  57. ;定义后台父级菜单
  58. menu_parent = 农场管理:,设备管理:,配置管理:,网站管理:
  59. ;定义后台子级菜单
  60. menu_child = 农场管理:/farm/farm,用户管理:/farm/user,产品管理:/farm/product,地块管理:/work/land,农事管理:/work/work,溯源批次:/origin/batch,消息提醒:/msg/msg;网关列表:/device/gateway,设备列表:/device/info;产品配置:/setting/product,服务配置:/setting/server,设备类型:/setting/device_type,硬件类型:/hardware/type,MODBUS命令码:/setting/modbus_code,错误码配置:/device/notice_type,消息类型设置:/msg/type;网站资料设置:/web/set,帮助分类:/web/help_category,发布帮助内容:/web/help,文章分类:/web/category,发布内容文章:/web/article,菜单管理:/web/menu
  61. ;cookie
  62. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  63. login_url = /user/login
  64. ;是否使用安全cookie
  65. xsrf_cookies = True
  66. ;前台配置
  67. [front]
  68. port = 8088
  69. debug = True
  70. max_buffer_size = 210763776
  71. process = 0
  72. url = http://192.168.33.10:8088/device
  73. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  74. mobile = True
  75. ;网站前台配置
  76. [web]
  77. port = 8089
  78. debug = True
  79. max_buffer_size = 210763776
  80. process = 0
  81. url = http://www.xinnongbaohe.com/
  82. farmurl = http://farm.xinnongbaohe.com/?id=
  83. originurl = http://s.xinnongbaohe.com/?id=
  84. ;同步配置
  85. [sync]
  86. ;同步的表,多个用逗号隔开
  87. table = notice_type,hardware_type,msg_type,setting_product,setting_device_type,setting_modbus_code
  88. ;同步的方法,仅限service
  89. service = core,eros