From 7f823ecd7c4e6add4bc30b87ca42be885417dc56 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:02:53 +0800 Subject: [PATCH] fix: Fix issue with custom rules being lost after restarting OpenResty. (#8929) Refs https://github.com/1Panel-dev/1Panel/issues/8923 --- agent/app/service/app_install.go | 6 ------ frontend/src/views/website/runtime/php/config/index.vue | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/agent/app/service/app_install.go b/agent/app/service/app_install.go index fe643656d..2279f7358 100644 --- a/agent/app/service/app_install.go +++ b/agent/app/service/app_install.go @@ -264,12 +264,6 @@ func (a *AppInstallService) Operate(req request.AppInstalledOperate) error { } return syncAppInstallStatus(&install, false) case constant.Restart: - if install.App.Key == "openresty" { - websites, _ := websiteRepo.GetBy() - if len(websites) > 0 { - _ = createAllWebsitesWAFConfig(websites) - } - } out, err := compose.Restart(dockerComposePath) if err != nil { return handleErr(install, err, out) diff --git a/frontend/src/views/website/runtime/php/config/index.vue b/frontend/src/views/website/runtime/php/config/index.vue index 4d6915d1b..420a03471 100644 --- a/frontend/src/views/website/runtime/php/config/index.vue +++ b/frontend/src/views/website/runtime/php/config/index.vue @@ -8,6 +8,9 @@ > @@ -44,7 +44,7 @@ import PHP from './php-fpm/index.vue'; import Performance from './performance/index.vue'; import Container from './container/index.vue'; -const index = ref('0'); +const index = ref('6'); const open = ref(false); const runtime = ref({ name: '',