chore(nginx): Adding protocol scheme forwarding
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
8639f89379
commit
c181d2198a
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/ {
|
||||
|
|
@ -134,6 +134,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