add nginx template and define