Unverified Commit 9fbbd672 authored by Edd Sowden's avatar Edd Sowden Committed by GitHub
Browse files

Merge pull request #2 from deliveroo/ui-xx/pass-hostname-down

UI-XX: Set host header on proxy to request host
parents 894da691 e1220990
Loading
Loading
Loading
Loading

CHANGELOG.md

0 → 100644
+9 −0
Original line number Diff line number Diff line
# `nginx-sidecar` changelog

## 0.1.0

- Pass original request hostname to consuming application

## 0.0.1

- Initial version
+1 −1
Original line number Diff line number Diff line
0.0.1
 No newline at end of file
0.1.0
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ http {
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Real-IP $remote_addr;

      # Pass the original host name through, this is important if downstream
      # uses host based routing
      proxy_set_header Host $host;

      proxy_redirect off; # disable nginx redirect-rewrite logic
      proxy_pass http://app:<APP_PORT>;
    }