From fd359725c32a69f2eb3d7c17395ea0c9a4f9ac3b Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Fri, 25 Feb 2022 18:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/conf/config.yml | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/bin/conf/config.yml b/bin/conf/config.yml index 81067c0..585d0e5 100644 --- a/bin/conf/config.yml +++ b/bin/conf/config.yml @@ -5,18 +5,35 @@ servers: port: 5000 +view: + # 默认显示主题 + style: "lewd" + + database: # 数据库类型 - type: sqlite - sqlite: + # 可选 'SQLite' /'MySQL'/ -> 暂未开发 + type: SQLite + SQLite: + # 数据库的路径, + # 需要从app.py文件所在目录为工作目录 path: "./bin/db/data.db" - # 暂未开发 -# mysql: -# address: "localhost" -# port: 3306 -# user: "" -# password: "" + +# 暂未开发 + MySQL: + # 数据库地址 + host: "localhost" + # 数据库端口 + port: 3306 + # 数据库用户 + user: "root" + # 数据库密码 + password: "" + # 数据库名称 + # 如果该数据库不存在则自动创建 + db: "requestcounter" +