Added the consul UI to the proxy service. Consul is now available at
http://localhost/consul on the docker host.
Also tweaked the startup options for portainer to ensure that the logo
is visible, the logo wasn't using one of the standard endpoints in
portainer.

Change-Id: I0633ff4184b4e61df37fbcdeff1094c8f8dea7a3
diff --git a/nginx_config/includes/consul.conf b/nginx_config/includes/consul.conf
new file mode 100644
index 0000000..d8d0d7a
--- /dev/null
+++ b/nginx_config/includes/consul.conf
@@ -0,0 +1,27 @@
+location /ui {
+  proxy_pass http://api-consul/;
+  rewrite /ui/(.*) /ui/$1 break;
+  proxy_next_upstream error timeout invalid_header http_500;
+}
+
+location /v1 {
+  proxy_pass http://api-consul/;
+  rewrite /v1/(.*) /v1/$1 break;
+  proxy_next_upstream error timeout invalid_header http_500;
+}
+
+location /consul {
+  proxy_pass http://api-consul/;
+  rewrite /consul/(.*) /$1 break;
+  sub_filter "/ui" "/consul/ui";
+  sub_filter "/v1" "/consul/v1";
+  #sub_filter "//" "/";
+  #sub_filter "href='" "href='swagger/";
+  #sub_filter 'href="' 'href="swagger/';
+  #sub_filter "src='" "src='swagger/";
+  #sub_filter 'src="' 'src="swagger/';
+  #sub_filter "/api/v1" "/swagger/api/v1";
+  sub_filter_once off;
+  proxy_next_upstream error timeout invalid_header http_500;
+}
+