Yelp/pushmanager — pull request #116 by kkellyy (2014-09-15 23:38:45+00:00)
Title: Pushspam remove port

Pushmanager now forms its URLs with information from any proxy it might be behind.

For pushmanager to do this, the proxy must forward its port and scheme via HTTP headers. Pushmanager uses the `X-Forwarded-Port` and `X-Forwarded-Scheme` headers for this.
* If the `X-Forwarded-Port` is set, then it will override the default of `Settings['main-app']['port']`.
* If the `X-Forwarded-Scheme` is set, then it will override the default of `https`.

For nginx, add these to `http`, `server`, or `location` blocks:
```
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme;
```

For apache2, can add these (or write logic to determine scheme):
```
RequestHeader set X-Forwarded-Port %{SERVER_PORT}
Requestheader set X-Forwarded-Scheme "http"
```