If SSLPassthrough is enabled it means the upstream requires https
This commit is contained in:
parent
2db989caa6
commit
7285372c8f
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ func buildProxyPass(b interface{}, loc interface{}) string {
|
||||||
|
|
||||||
for _, backend := range backends {
|
for _, backend := range backends {
|
||||||
if backend.Name == location.Backend {
|
if backend.Name == location.Backend {
|
||||||
if backend.Secure {
|
if backend.Secure || backend.SSLPassthrough {
|
||||||
proto = "https"
|
proto = "https"
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue