1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
10 "git.arvados.org/arvados.git/sdk/go/arvados"
11 "git.arvados.org/arvados.git/sdk/go/health"
12 "git.arvados.org/arvados.git/sdk/go/httpserver"
17 cluster *arvados.Cluster
20 func (srv *server) Start() error {
21 mux := http.NewServeMux()
22 mux.Handle("/", &authHandler{handler: newGitHandler(srv.cluster), cluster: srv.cluster})
23 mux.Handle("/_health/", &health.Handler{
24 Token: srv.cluster.ManagementToken,
28 var listen arvados.URL
29 for listen = range srv.cluster.Services.GitHTTP.InternalURLs {
34 srv.Addr = listen.Host
35 return srv.Server.Start()