feat: 调整 waf 配置文件生成顺序 (#4339)

This commit is contained in:
zhengkunwang 2024-03-28 16:10:07 +08:00 committed by GitHub
parent 9b9fe5444d
commit 1ae5bef40d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,10 +326,10 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error)
}
}
if err = configDefaultNginx(website, domains, appInstall, runtime); err != nil {
if err = createWafConfig(website, domains); err != nil {
return err
}
if err = createWafConfig(website, domains); err != nil {
if err = configDefaultNginx(website, domains, appInstall, runtime); err != nil {
return err
}