安装时默认设置访问日志保留30天

This commit is contained in:
GoEdgeLab
2021-06-24 21:06:43 +08:00
parent 5bbfab9498
commit b80aabc65d
3 changed files with 67 additions and 11 deletions

View File

@@ -15,11 +15,12 @@ type ValidateDbAction struct {
}
func (this *ValidateDbAction) RunPost(params struct {
Host string
Port string
Database string
Username string
Password string
Host string
Port string
Database string
Username string
Password string
AccessLogKeepDays int
Must *actions.Must
}) {
@@ -98,12 +99,13 @@ func (this *ValidateDbAction) RunPost(params struct {
}
this.Data["db"] = maps.Map{
"host": params.Host,
"port": params.Port,
"database": params.Database,
"username": params.Username,
"password": params.Password,
"passwordMask": strings.Repeat("*", len(params.Password)),
"host": params.Host,
"port": params.Port,
"database": params.Database,
"username": params.Username,
"password": params.Password,
"passwordMask": strings.Repeat("*", len(params.Password)),
"accessLogKeepDays": params.AccessLogKeepDays,
}
this.Success()