Unverified Commit 55b25786 authored by Andrii Dmytrenko's avatar Andrii Dmytrenko Committed by GitHub
Browse files

Merge pull request #3 from deliveroo/pass-forwarded-proto

Pass X-Forwarded-Proto
parents 9fbbd672 8447e117
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
# `nginx-sidecar` changelog

## 0.2.0

- Pass original request scheme to consuming application

## 0.1.0

- Pass original request hostname to consuming application
+1 −1
Original line number Diff line number Diff line
0.1.0
0.2.0
+6 −0
Original line number Diff line number Diff line
@@ -70,6 +70,11 @@ http {
  #
  underscores_in_headers on;

  map $http_x_forwarded_proto $thescheme {
      default $scheme;
      https https;
  }

  server {
    listen <NGINX_PORT> deferred;

@@ -83,6 +88,7 @@ http {
      proxy_set_header X-Queue-Start "t=${msec}";

      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $thescheme;
      proxy_set_header X-Real-IP $remote_addr;

      # Pass the original host name through, this is important if downstream