arranged template and add nginx config file