chore(nginx): Adding x-forwarded-proto map
x-forwarded-proto is not standard aginst all LB, If nginx is offloading SSL, then there won't be any x-forwarded-proto. So, default we're taking $http_x_forwarded_proto else $scheme. Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
eabc508e8b
commit
97596a685c
1 changed files with 5 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ data:
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $origin_proto;
|
||||
proxy_pass http://chalice-openreplay.app.svc.cluster.local:8000;
|
||||
}
|
||||
location /assist/ {
|
||||
|
|
@ -133,6 +133,10 @@ data:
|
|||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
map $http_x_forwarded_proto $origin_proto {
|
||||
default $http_x_forwarded_proto;
|
||||
'' $scheme;
|
||||
}
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue