feat: change website http to https logic

This commit is contained in:
zhengkunwang223 2025-12-30 14:01:14 +08:00
parent e3dea80cb7
commit 325d824462

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)},
})
}