add X-Forwarded-Ssl and X-Forwarded-Proto headers when accessing app through ssl

this allows the app to detect if the user accessed it using http or https
Merge pull request #797 from simplysoft/nginx_x-forwarded-ssl

Add X-Forwarded-Ssl and X-Forwarded-Proto for better SSL support