     location = ""
 
     options.nginx.locations or= ["/#{name}"]
+    options.nginx.proxyPass or= "http://#{name}"
 
 
     for location in options.nginx.locations

      else
        auth = options.nginx.auth

      locations += fn name, location, auth

  return locations


auth_basic            "Restricted";
      auth_basic_user_file  /etc/nginx/conf.d/.htpasswd;"""

createWebLocation = ({name, location, auth, proxyPass}) ->
  auth ?= no
  return """\n
      location #{location} {
        proxy_pass            #{proxyPass};
        proxy_set_header      X-Real-IP       $remote_addr;
        proxy_set_header      X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_next_upstream   error timeout   invalid_header http_500;
