-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from sampsonye/feature-config-template
Add app.conf.template
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |