Skip to content

Commit

Permalink
Merge pull request #97 from sampsonye/feature-config-template
Browse files Browse the repository at this point in the history
Add app.conf.template
  • Loading branch information
colynn committed Mar 9, 2022
2 parents 69be69a + 61c7dc6 commit 0897f1a
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions conf/app.conf.template
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0897f1a

Please sign in to comment.