fixed the problem with the nginx.template.conf