feat: change website http to https logic (#11522)

Refs https://github.com/1Panel-dev/1Panel/issues/11521
This commit is contained in:
CityFun 2025-12-30 14:33:36 +08:00 committed by GitHub
parent e18472f1a3
commit 74a8e61f3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -482,7 +482,7 @@ func (s *Server) AddHTTP2HTTPS(httpsPort int) {
} else {
block.AppendDirectives(&Directive{
Name: "return",
Parameters: []string{"301", fmt.Sprintf("https://$host$request_uri:%d", httpsPort)},
Parameters: []string{"301", fmt.Sprintf("https://$host:%d$request_uri", httpsPort)},
})
}