Add the service_url marco to render endpoints

Change-Id: Iccc8ece2d99a656d2cfdfd574de91ae890c7868e
diff --git a/devops_portal/files/nginx.conf b/devops_portal/files/nginx.conf
index 5b2a41c..83073fa 100644
--- a/devops_portal/files/nginx.conf
+++ b/devops_portal/files/nginx.conf
@@ -1,5 +1,6 @@
 {%- from "devops_portal/map.jinja" import config with context -%}
 {%- from "devops_portal/map.jinja" import services with context -%}
+{%- from "devops_portal/map.jinja" import service_endpoint with context -%}
 daemon off;
 
 worker_processes 1;
@@ -47,7 +48,7 @@
 {%- if service.enabled|default(False) and service.configure_proxy|default(False) %}
 
         location /api/{{ service_name }} {
-            proxy_pass {{ service.endpoint }};
+            proxy_pass {{ service_url(service.endpoint) }};
         }
 {%- endif %}
 {%- endif %}