From 256be27f92571bb04e7bdd37309a058dac13e832 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:54:18 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=9A=84=E5=85=B3=E9=97=AD=E5=8F=82=E6=95=B0?= =?UTF-8?q?=20(#2475)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/2374 --- backend/app/service/website.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/service/website.go b/backend/app/service/website.go index 99dddc5a8..d328484eb 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -964,10 +964,11 @@ func (w WebsiteService) OpWebsiteLog(req request.WebsiteLogReq) (*response.Websi } var nginxParams []dto.NginxParam nginxParams = append(nginxParams, dto.NginxParam{ - Name: key, + Name: key, + Params: []string{"off"}, }) - if err := deleteNginxConfig(constant.NginxScopeServer, nginxParams, &website); err != nil { + if err := updateNginxConfig(constant.NginxScopeServer, nginxParams, &website); err != nil { return nil, err } if err := websiteRepo.Save(context.Background(), &website); err != nil {