Redirect for app-root should preserve current scheme (#5266)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-03-19 15:49:18 -03:00 committed by GitHub
parent 84619d7b08
commit 07b70f68bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 18 deletions

View file

@ -862,7 +862,7 @@ stream {
proxy_ssl_verify_depth {{ $server.ProxySSL.VerifyDepth }};
{{ if not (empty $server.ProxySSL.ProxySSLName) }}
proxy_ssl_name {{ $server.ProxySSL.ProxySSLName }};
{{ end }}
{{ end }}
{{ end }}
{{ if not (empty $server.ProxySSL.PemFileName) }}
@ -896,9 +896,9 @@ stream {
{{ $externalAuth = $all.Cfg.GlobalExternalAuth }}
{{ end }}
{{ if not (empty $location.Rewrite.AppRoot)}}
{{ if not (empty $location.Rewrite.AppRoot) }}
if ($uri = /) {
return 302 {{ $location.Rewrite.AppRoot }};
return 302 $scheme://$http_host{{ $location.Rewrite.AppRoot }};
}
{{ end }}