fix: HTTPS redirection with custom HTTPS port

This commit is contained in:
John Stucklen authored and Nicolas Duchon committed 2021-06-15 00:33:06 +02:00
1 parent 6bb7c37605
commit fa8b0d7bad
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -276,7 +276,11 @@ server {
}
location / {
{{ if eq $external_https_port "443" }}
return 301 https://$host$request_uri;
{{ else }}
return 301 https://$host:{{ $external_https_port }}$request_uri;
{{ end }}
}
}
{{ end }}