Debugger: fixed HTTPS detection on nginx