123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- [base]
- [setting]
- ;以下几个配置都是云平台生成
- ;农场名称
- name = 新农宝盒本地服务
- ;农场id
- farm = 1
- ;农场站点
- site = http://www.xinnongbaohe.com/
- copyright = 2017 xingnongbaohe.com v1.0.0
- [db]
- rdb = postgresql
- tsdb = influxdb
- [postgresql]
- host = 0.0.0.0
- port = 5432
- username = postgres
- password = 123456
- dbname = xinnongbaohe
- prefix = demeter
- ;允许自动建表
- create = True
- [influxdb]
- host = 0.0.0.0
- port = 8086
- username = root
- password = root
- dbname = xinnongbaohe
- prefix = demeter
- [redis]
- host = 0.0.0.0
- password = dm_redis_123
- port = 6379
- name = eros
- prefix = eros_
- [modbus]
- host = 192.168.33.10
- port = 1152
- [mqtt]
- host = 0.0.0.0
- port = 1883
- username = admin
- password = public
- timeout = 60
- ;topic定义
- topic = method/type/gateway/device
- sub = pic,sensor,power,status,log|control
- ;后台配置
- [admin]
- port = 8090
- debug = True
- ;请求的buffersize
- max_buffer_size = 210763776
- ;子进程
- process = 0
- ;定义后台父级菜单
- menu_parent = 农场管理:,设备管理:,配置管理:
- ;定义后台子级菜单
- 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
- ;cookie
- cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=
- login_url = /user/login
- ;是否使用安全cookie
- xsrf_cookies = True
- ;前台配置
- [front]
- port = 8091
- debug = True
- max_buffer_size = 210763776
- process = 0
- url = http://192.168.33.10:8091/device
- qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url=
- mobile = True
- ;网站前台配置
- [web]
- port = 8092
- debug = True
- max_buffer_size = 210763776
- process = 0
- url = http://www.xinnongbaohe.com/
- farmurl = http://farm.xinnongbaohe.com/?id=
- originurl = http://s.xinnongbaohe.com/?id=
- ;云端配置
- [zeus]
- host = http://192.168.33.10:8088/
- ;同步配置
- [sync]
- ;同步的表,多个用逗号隔开
- 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
- ;同步的方法,仅限service
- service = core,zeus
|