X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/48350f3e8fe2f47eb6ff9f862a8d83fb8a027c6d..c9e9f6ff4cadaf30657becdb70d0d828965397b0:/lib/boot/nginx.go?ds=sidebyside diff --git a/lib/boot/nginx.go b/lib/boot/nginx.go index 6b2d6777fd..0f105d6b6c 100644 --- a/lib/boot/nginx.go +++ b/lib/boot/nginx.go @@ -26,15 +26,18 @@ func (runNginx) String() string { } func (runNginx) Run(ctx context.Context, fail func(error), super *Supervisor) error { + err := super.wait(ctx, createCertificates{}) + if err != nil { + return err + } vars := map[string]string{ "LISTENHOST": super.ListenHost, - "SSLCERT": filepath.Join(super.SourcePath, "services", "api", "tmp", "self-signed.pem"), // TODO: root ca - "SSLKEY": filepath.Join(super.SourcePath, "services", "api", "tmp", "self-signed.key"), // TODO: root ca + "SSLCERT": filepath.Join(super.tempdir, "server.crt"), + "SSLKEY": filepath.Join(super.tempdir, "server.key"), "ACCESSLOG": filepath.Join(super.tempdir, "nginx_access.log"), "ERRORLOG": filepath.Join(super.tempdir, "nginx_error.log"), "TMPDIR": super.tempdir, } - var err error for _, cmpt := range []struct { varname string svc arvados.Service @@ -44,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}, } {