env.conf 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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_zeus
  17. prefix = demeter
  18. ;允许自动建表
  19. create = False
  20. [influxdb]
  21. host = iot-influx
  22. port = 8086
  23. username = root
  24. password = root
  25. dbname = xinnongbaohe
  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-emq
  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 = 8087
  45. debug = True
  46. ;请求的buffersize
  47. max_buffer_size = 210763776
  48. ;子进程
  49. process = 0
  50. ;定义后台父级菜单
  51. menu_parent = 农场管理:,设备管理:,配置管理:,网站管理:
  52. ;定义后台子级菜单
  53. 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
  54. ;cookie
  55. cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
  56. login_url = /user/login
  57. ;是否使用安全cookie
  58. xsrf_cookies = True
  59. ;前台配置
  60. [front]
  61. port = 8088
  62. debug = False
  63. max_buffer_size = 210763776
  64. process = 50
  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 = 8089
  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. [sync]
  79. ;同步的表,多个用逗号隔开
  80. table = notice_type,hardware_type,msg_type,setting_product,setting_device_type,setting_modbus_code
  81. ;同步的方法,仅限service
  82. service = core,eros