Merge pull request #433 from wcbing/patch-1

fix: http-to-https use $host and 308
This commit is contained in:
Jacky 2024-07-06 19:48:31 +08:00 committed by GitHub
commit 7fb84597cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,9 +11,9 @@ value = ""
{{- if .host }}
if ($host == {{ .host }}) {
return 307 https://$server_name$request_uri;
return 308 https://$host$request_uri;
}
return 404;
{{ else }}
return 307 https://$server_name$request_uri;
return 308 https://$host$request_uri;
{{- end }}