Skip to content

Commit 7f823ec

Browse files
fix: Fix issue with custom rules being lost after restarting OpenResty. (#8929)
Refs #8923
1 parent 2ae5c9f commit 7f823ec

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

agent/app/service/app_install.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ func (a *AppInstallService) Operate(req request.AppInstalledOperate) error {
264264
}
265265
return syncAppInstallStatus(&install, false)
266266
case constant.Restart:
267-
if install.App.Key == "openresty" {
268-
websites, _ := websiteRepo.GetBy()
269-
if len(websites) > 0 {
270-
_ = createAllWebsitesWAFConfig(websites)
271-
}
272-
}
273267
out, err := compose.Restart(dockerComposePath)
274268
if err != nil {
275269
return handleErr(install, err, out)

frontend/src/views/website/runtime/php/config/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
>
99
<template #content>
1010
<el-tabs tab-position="left" v-model="index">
11+
<el-tab-pane :label="$t('php.containerConfig')" name="6">
12+
<Container :id="runtime.id" v-if="index == '6'"></Container>
13+
</el-tab-pane>
1114
<el-tab-pane :label="$t('website.updateConfig')" name="0">
1215
<Config :id="runtime.id" v-if="index == '0'"></Config>
1316
</el-tab-pane>
@@ -26,9 +29,6 @@
2629
<el-tab-pane :label="'FPM ' + $t('website.source')" name="3">
2730
<PHP :id="runtime.id" v-if="index == '3'" :type="'fpm'"></PHP>
2831
</el-tab-pane>
29-
<el-tab-pane :label="$t('php.containerConfig')" name="6">
30-
<Container :id="runtime.id" v-if="index == '6'"></Container>
31-
</el-tab-pane>
3232
</el-tabs>
3333
</template>
3434
</DrawerPro>
@@ -44,7 +44,7 @@ import PHP from './php-fpm/index.vue';
4444
import Performance from './performance/index.vue';
4545
import Container from './container/index.vue';
4646
47-
const index = ref('0');
47+
const index = ref('6');
4848
const open = ref(false);
4949
const runtime = ref({
5050
name: '',

0 commit comments

Comments
 (0)