fix: Fix issue with custom rules being lost after restarting OpenResty. (#8929)

Refs https://github.com/1Panel-dev/1Panel/issues/8923
This commit is contained in:
CityFun 2025-06-05 19:02:53 +08:00 committed by GitHub
parent 2ae5c9f0d4
commit 7f823ecd7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

View file

@ -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)

View file

@ -8,6 +8,9 @@
>
<template #content>
<el-tabs tab-position="left" v-model="index">
<el-tab-pane :label="$t('php.containerConfig')" name="6">
<Container :id="runtime.id" v-if="index == '6'"></Container>
</el-tab-pane>
<el-tab-pane :label="$t('website.updateConfig')" name="0">
<Config :id="runtime.id" v-if="index == '0'"></Config>
</el-tab-pane>
@ -26,9 +29,6 @@
<el-tab-pane :label="'FPM ' + $t('website.source')" name="3">
<PHP :id="runtime.id" v-if="index == '3'" :type="'fpm'"></PHP>
</el-tab-pane>
<el-tab-pane :label="$t('php.containerConfig')" name="6">
<Container :id="runtime.id" v-if="index == '6'"></Container>
</el-tab-pane>
</el-tabs>
</template>
</DrawerPro>
@ -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: '',