env.conf 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [base]
  2. [setting]
  3. name = 新农宝盒本地服务
  4. ;园区默认id,如有cookie,此处的值会自动变成cookie的值
  5. farm = 1
  6. site = http://www.xinnongbaohe.com/
  7. copyright = 2017 xingnongbaohe.com v1.0.0
  8. [db]
  9. rdb = postgresql
  10. tsdb = influxdb
  11. [postgresql]
  12. host = iot-pgsql
  13. port = 5432
  14. username = postgres
  15. password = 123456
  16. dbname = xinnongbaohe_eros
  17. prefix = demeter
  18. ;允许自动建表
  19. create = True
  20. [influxdb]
  21. host = iot-influx
  22. port = 8086
  23. username = root
  24. password = root
  25. dbname = xinnongbaohe_eros
  26. prefix = demeter
  27. [redis]
  28. host = iot-redis
  29. password = dm_redis_123
  30. port = 6379
  31. name = eros
  32. prefix = eros_
  33. [mqtt]
  34. host = iot-emqx
  35. port = 1883
  36. username = admin
  37. password = public
  38. timeout = 60
  39. ;topic定义
  40. topic = method/type/gateway/device
  41. sub = pic,sensor,power,status,log|control
  42. ;后台配置
  43. [admin]
  44. port = 8090
  45. debug = True
  46. ;请求的buffersize
  47. max_buffer_size = 210763776
  48. ;子进程
  49. process = 0
  50. ;定义后台父级菜单
  51. menu_parent = 农场管理:,设备管理:,配置管理:
  52. ;定义后台子级菜单
  53. menu_child = 基础资料:/farm/info?id=1,用户管理:/farm/user,产品管理:/farm/product,地块管理:/work/land,农事管理:/work/work;网关列表:/device/gateway,设备列表:/device/info;产品配置:/setting/product,服务配置:/setting/server,设备类型:/setting/device_type,硬件类型:/hardware/type,MODBUS命令码:/setting/modbus_code,错误码配置:/device/notice_type,消息类型设置:/msg/type
  54. ;cookie
  55. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  56. login_url = /user/login
  57. ;是否使用安全cookie
  58. xsrf_cookies = True
  59. ;前台配置
  60. [front]
  61. port = 8091
  62. debug = True
  63. max_buffer_size = 210763776
  64. process = 20
  65. url = http://www.xinnongbaohe.com:8088/device
  66. qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
  67. mobile = True
  68. ;网站前台配置
  69. [web]
  70. port = 8092
  71. debug = True
  72. max_buffer_size = 210763776
  73. process = 0
  74. url = http://www.xinnongbaohe.com/
  75. farmurl = http://farm.xinnongbaohe.com/?id=
  76. originurl = http://s.xinnongbaohe.com/?id=
  77. ;云端配置
  78. [zeus]
  79. host = http://www.xinnongbaohe.com:8088/
  80. ;同步配置
  81. [sync]
  82. ;同步的表,多个用逗号隔开
  83. table = farm,farm_user,farm_product,farm_work,farm_work_method,farm_work_category,farm_work_land,origin_batch,origin_growth,device_info,device_gateway,device_camera,device_camera_pic,device_group,device_page,device_pic,device_printer,device_set_condition,device_set_loop,device_set_timing
  84. ;同步的方法,仅限service
  85. service = core,zeus