2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 网站支持设置日志路径

This commit is contained in:
2026-01-26 18:39:23 +08:00
parent c4f6dd0be2
commit 9fce7323a6
3 changed files with 43 additions and 2 deletions

View File

@@ -682,7 +682,19 @@ func (r *websiteRepo) Update(ctx context.Context, req *request.WebsiteUpdate) er
}
}
// 高级设置(限流限速、真实 IP、基本认证
// 高级设置(日志路径、限流限速、真实 IP、基本认证
// 日志路径
if req.AccessLog != "" {
if err = vhost.SetAccessLog(req.AccessLog); err != nil {
return err
}
}
if req.ErrorLog != "" {
if err = vhost.SetErrorLog(req.ErrorLog); err != nil {
return err
}
}
// 限流限速
if req.RateLimit != nil {
if err = vhost.SetRateLimit(req.RateLimit); err != nil {
return err