add nginx mode