From 82d527cc6b3bcac60bfb445ac49ed2961d063de5 Mon Sep 17 00:00:00 2001 From: majun <3060162534@qq.com> Date: Fri, 6 Dec 2024 10:52:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - manifest/config/config.yaml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 manifest/config/config.yaml diff --git a/.gitignore b/.gitignore index b0e4115..0eb652b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ manifest/output/ temp/ temp.yaml bin -**/config/config.yaml *.exe *.exe~ diff --git a/manifest/config/config.yaml b/manifest/config/config.yaml new file mode 100644 index 0000000..4cf71b3 --- /dev/null +++ b/manifest/config/config.yaml @@ -0,0 +1,15 @@ +# https://goframe.org/docs/web/server-config-file-template +server: + address: ":8080" + openapiPath: "/api.json" + swaggerPath: "/swagger" + +# https://goframe.org/docs/core/glog-config +logger: + level : "all" + stdout: true + +# https://goframe.org/docs/core/gdb-config-file +database: + default: + link: "mysql:root:123456@tcp(127.0.0.1:3306)/demo?charset=utf8mb4&parseTime=True&loc=Local" \ No newline at end of file