Added the voltha swagger interface to the proxy. Voltha's swagger
interface is now avaialble at http://localhost/swagger.
Made a small change to the way nginx is started because requests to
reload the config were comming in before it had finished loading its
config causing consul-template to choke.
Added a gitignore file in the upstreams directory to ensure that it
gets created in the repo. It needs to be there since the directory is
mounted by the container during the development phase.
Change-Id: I39a1683970ba114f5952913a5beb7cfe9cfe1cc3
diff --git a/nginx_config/nginx-upstreams.ctmpl b/nginx_config/nginx-upstreams.ctmpl
index 747e36b..ec2ce12 100644
--- a/nginx_config/nginx-upstreams.ctmpl
+++ b/nginx_config/nginx-upstreams.ctmpl
@@ -3,6 +3,11 @@
server {{.Address}}:{{.Port}};
{{end}}
}
+upstream api-swagger {
+ {{range service "chameleon-rest" "any"}}
+ server {{.Address}}:{{.Port}};
+ {{end}}
+}
upstream api-docker {
{{range service "portainer" "any"}}
server {{.Address}}:{{.Port}};