X-Forwarded-Host
Purpose: Indicates the host name that the user sees in their browser.
Example Value: search.example.com
Configuration: The proxy should set this header to the public-facing hostname of the site. This should be set even if the proxy maintains the Host: header.
X-Forwarded-Proto
Purpose: Indicates the protocol (HTTP or HTTPS) that the user sees.
Example Values: http or https
Configuration: This header is especially important if the proxy performs SSL termination and forwards the request to the software product over HTTP. Set this header to reflect the protocol the user perceives.