use protocol signaled by 'X-Forwarded-Proto' header