[base] [setting] name = 新农宝盒本地服务 ;园区默认id,如有cookie,此处的值会自动变成cookie的值 farm = 1 site = http://www.xinnongbaohe.com/ copyright = 2017 xingnongbaohe.com v1.0.0 [db] rdb = postgresql tsdb = influxdb [postgresql] host = iot-pgsql port = 5432 username = postgres password = 123456 dbname = xinnongbaohe_eros prefix = demeter ;允许自动建表 create = True [influxdb] host = iot-influx port = 8086 username = root password = root dbname = xinnongbaohe_eros prefix = demeter [redis] host = iot-redis password = dm_redis_123 port = 6379 name = eros prefix = eros_ [mqtt] host = iot-emqx 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 = 20 url = http://www.xinnongbaohe.com:8088/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://www.xinnongbaohe.com: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