nginx template improvement