[ARVADOS] created: 1.3.0-2500-gb191ca173

Git user git at public.arvados.org
Fri Apr 17 21:26:30 UTC 2020


        at  b191ca173ed9c3d9fd107ce7aa17d1b34934a1bf (commit)


commit b191ca173ed9c3d9fd107ce7aa17d1b34934a1bf
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Fri Apr 17 18:25:41 2020 -0300

    16029: Makes health aggregator accessible from the outside on arvados boot.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/lib/boot/nginx.go b/lib/boot/nginx.go
index ecbb7a9d3..0f105d6b6 100644
--- a/lib/boot/nginx.go
+++ b/lib/boot/nginx.go
@@ -47,6 +47,7 @@ func (runNginx) Run(ctx context.Context, fail func(error), super *Supervisor) er
 		{"KEEPWEBDL", super.cluster.Services.WebDAVDownload},
 		{"KEEPPROXY", super.cluster.Services.Keepproxy},
 		{"GIT", super.cluster.Services.GitHTTP},
+		{"HEALTH", super.cluster.Services.Health},
 		{"WORKBENCH1", super.cluster.Services.Workbench1},
 		{"WS", super.cluster.Services.Websocket},
 	} {
diff --git a/lib/boot/supervisor.go b/lib/boot/supervisor.go
index 7f5d6a9ba..26f38ac23 100644
--- a/lib/boot/supervisor.go
+++ b/lib/boot/supervisor.go
@@ -549,6 +549,7 @@ func (super *Supervisor) autofillConfig(cfg *arvados.Config) error {
 		if svc.ExternalURL.Host == "" {
 			if svc == &cluster.Services.Controller ||
 				svc == &cluster.Services.GitHTTP ||
+				svc == &cluster.Services.Health ||
 				svc == &cluster.Services.Keepproxy ||
 				svc == &cluster.Services.WebDAV ||
 				svc == &cluster.Services.WebDAVDownload ||
diff --git a/sdk/python/tests/nginx.conf b/sdk/python/tests/nginx.conf
index 6e872a615..85b4f5b37 100644
--- a/sdk/python/tests/nginx.conf
+++ b/sdk/python/tests/nginx.conf
@@ -71,6 +71,25 @@ http {
       proxy_request_buffering off;
     }
   }
+  upstream health {
+    server {{LISTENHOST}}:{{HEALTHPORT}};
+  }
+  server {
+    listen {{LISTENHOST}}:{{HEALTHSSLPORT}} ssl default_server;
+    server_name health;
+    ssl_certificate "{{SSLCERT}}";
+    ssl_certificate_key "{{SSLKEY}}";
+    location  / {
+      proxy_pass http://health;
+      proxy_set_header Host $http_host;
+      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+      proxy_set_header X-Forwarded-Proto https;
+      proxy_redirect off;
+
+      proxy_http_version 1.1;
+      proxy_request_buffering off;
+    }
+  }
   server {
     listen {{LISTENHOST}}:{{KEEPWEBDLSSLPORT}} ssl default_server;
     server_name keep-web-dl ~.*;

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list