output nginx upstream conf to dir