[base] [setting] ;农场名称 name = 新农宝盒云端服务 ;农场id farm = 1 ;农场站点 site = http://www.xinnongbaohe.com/ copyright = 2017 xingnongbaohe.com v1.0.0 [db] rdb = postgresql tsdb = influxdb [postgresql] ;createdb -h localhost -p 5432 -U postgres xinnongbaohe_zeus ;CREATE DATABASE xinnongbaohe_zeus WITH OWNER = postgres ENCODING = "UTF8" host = 0.0.0.0 port = 5432 username = postgres password = 123456 dbname = xinnongbaohe_zeus 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 = 8087 debug = True ;请求的buffersize max_buffer_size = 210763776 ;子进程 process = 0 ;定义后台父级菜单 menu_parent = 农场管理:,设备管理:,配置管理:,网站管理: ;定义后台子级菜单 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 ;cookie cookie_secret = 61oETzKXQAGaYekL5gEmGeJJFuYh7EQnp2XdTP1o/Vo= login_url = /user/login ;是否使用安全cookie xsrf_cookies = True ;前台配置 [front] port = 8088 debug = True max_buffer_size = 210763776 process = 0 url = http://192.168.33.10:8088/device qrcode = http://pan.baidu.com/share/qrcode?w=300&h=300&url= mobile = True ;网站前台配置 [web] port = 8089 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= ;同步配置 [sync] ;同步的表,多个用逗号隔开 table = notice_type,hardware_type,msg_type,setting_product,setting_device_type,setting_modbus_code ;同步的方法,仅限service service = core,eros