mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-11 01:25:11 +08:00
feat: change website http to https logic (#11522)
Refs https://github.com/1Panel-dev/1Panel/issues/11521
This commit is contained in:
parent
e18472f1a3
commit
74a8e61f3e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue