mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
feat: 网站支持设置日志路径
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user