Only include X-Forwarded-Proto when HTTPS is enabled
Be explicit about X-Forwarded-Proto scheme used based on HTTPS setting. In the case of multiple reverse proxies, the scheme may appear to be HTTP, which could cause 422 errors.
Unicorn only checks if the setting is "https" and otherwise defaults to "http".
Closes gitlab-org/gitlab-ce#2091