Merge pull request #433 from wcbing/patch-1

fix: http-to-https use $host and 308
pull/436/head
Jacky 2 years ago committed by GitHub
commit 7fb84597cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 }}

Loading…
Cancel
Save