Have nginx forward the correct protocol to the application

This should address the browse-everywhere redirect problem.
(Issue HYDRASIR-218, I think)