nginx template cleanup