From c72ce1196eb788b83fcf6dfc0412e9789d2a79c5 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 7 Jul 2023 17:06:03 +0800 Subject: [PATCH] add cfg.yml --- etc/cfg.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 etc/cfg.yml diff --git a/etc/cfg.yml b/etc/cfg.yml new file mode 100644 index 0000000..b88e2f5 --- /dev/null +++ b/etc/cfg.yml @@ -0,0 +1,38 @@ +# 当前域名 +debug: true +curldebug: true +prd: false +local: true +# 服务器参数 +srv_addr: ':5001' +# 缓存 +redis_addr: '47.108.198.174:6379' + +app_comm: + # 本模块外网地址 + outer_url: http://127.0.0.1:5003 + +# 连接官网数据库获取db mapping +db: + host: '47.108.198.174:3306' + name: 'one_item_one_code' + user: 'root' + psw: 'sanhu' + show_log: true + max_lifetime: 30 + max_open_conns: 100 + max_idle_conns: 100 + path: 'tmp/%s.log' + +# 日志 +log: + app_name: 'applet' + level: 'debug' # 普通日志级别 #debug, info, warn, fatal, panic + is_stdout: true + time_format: 'standard' # sec, second, milli, nano, standard, iso + encoding: 'console' + is_file_out: true + file_dir: './tmp/' + file_max_size: 256 + file_max_age: 1 + file_name: 'debug.log'