From 0946532ca0287ba92669414ba44a330f1995e114 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 16 Aug 2024 23:26:34 +0800 Subject: [PATCH] update --- etc/cfg.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 etc/cfg.yml diff --git a/etc/cfg.yml b/etc/cfg.yml new file mode 100644 index 0000000..eba93e2 --- /dev/null +++ b/etc/cfg.yml @@ -0,0 +1,41 @@ +# 当前域名 +debug: true +curldebug: true +prd: false +local: true +# 服务器参数 +srv_addr: ':1004' +# 缓存 +redis_addr: '120.24.28.6:32572' + +# 连接官网数据库获取db mapping +db: + host: '119.23.182.117:3306' + name: 'super_advertisement' + user: 'root' + psw: 'Fnuo123com@' + 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' + +# 连接RabbitMq +mq: + host: '116.62.62.35' + port: '5672' + user: 'zhios' + pwd: 'ZHIoscnfnuo123' \ No newline at end of file