From 61c7dc677340eb070ce0125e20fa60b3da2c44ea Mon Sep 17 00:00:00 2001 From: SampsonYe <271232507@qq.com> Date: Wed, 9 Mar 2022 10:41:23 +0800 Subject: [PATCH] Add app.conf.template --- conf/app.conf.template | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 conf/app.conf.template diff --git a/conf/app.conf.template b/conf/app.conf.template new file mode 100644 index 00000000..eb56385a --- /dev/null +++ b/conf/app.conf.template @@ -0,0 +1,61 @@ +## 模板配置,承载完整最新的配置内容 +[default] +appname = atomci +# 默认监听端口 +httpport = 8080 +runmode = dev +copyrequestbody = true + +[log] +logfile = "log/atomci.log" +## log level +# 0: LevelEmergency = iota +# 1: LevelAlert +# 2: LevelCritical +# 3: LevelError +# 4: LevelWarning +# 5: LevelNotice +# 6: LevelInformational +# 7: LevelDebug +level = 7 +separate = ["error"] + +[DB] +# 数据库相关配置,目前仅支持mysql5.7+ +url = root:root@tcp(127.0.0.1:3306)/atomci?charset=utf8mb4&loc=Local +debug = false +rowsLimit = 5000 +maxIdelConns = 100 +maxOpenConns = 200 + +[ldap] +# 支持配置LDAP +host = ldap.xxx.com +port = 389 +bindDN = ldap@xx.com +bindPassword = Xxx.., +userFilter = (samaccountname=%s) +baseDN = OU=Xxx,DC=xx,DC=com + +[jwt] +secret = changemeforsecurity + +[k8s] +# k8s相关配置文件默认保存地址,一般请不要修改 +configPath = ./conf/k8sconfig + +[atomci] +# atomci后端服务地址,用于k8s/jenkins进行回调,因此请确保地址是可以被k8s集群(jenkins agent)访问到 +url = http://localhost:8080 + +# 通知配置 +[notification] +# 钉钉通知 +dingEnable = 1 +ding = "https://oapi.dingtalk.com/robot/send?access_token=faketoken" +# 邮件通知 +mailEnable = 1 +smtpHost = "smtp.host" +smtpPort = 465 +smtpAccount = "fake@mail.com" +smtpPassword = "pwd" \ No newline at end of file