modify template for nginx
add dynamic nginx upstream
fix port