diff --git a/agent/app/service/website.go b/agent/app/service/website.go index 36f9e55b2..b7c45e75f 100644 --- a/agent/app/service/website.go +++ b/agent/app/service/website.go @@ -2278,6 +2278,12 @@ func (w WebsiteService) UpdateAntiLeech(req request.NginxAntiLeechUpdate) (err e }, } newBlock.Directives = append(newBlock.Directives, ifDir) + if website.Type == constant.Deployment { + newBlock.Directives = append(newBlock.Directives, &components.Directive{ + Name: "proxy_pass", + Parameters: []string{fmt.Sprintf("http://%s", website.Proxy)}, + }) + } newDirective.Block = newBlock index := -1 for i, directive := range block.Directives {