Allow to set correct scheme when nginx is behind an https proxy