Commit 102918d0 authored by Edd Sowden's avatar Edd Sowden
Browse files

UI-XX: Set host header on proxy to request host

If downstream uses host based routing (like orderweb to switch country
based on tld) then we need the original host to be passed through
without being modified. Otherwise the host will be changed to the
internal nginx host. Prior to this change the host would have been set
to be `app`.
parent 894da691
Loading
Loading
Loading
Loading
+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>;
    }