From c9f78d02adf9740f3b8d403a1418554293cc9f41 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 29 Jul 2019 11:15:21 -0700 Subject: [PATCH] Disable the Cloud Launcher. Too expensive for how underused (3 people?) it is. --- go.mod | 2 ++ website/pk-web/pkweb.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/go.mod b/go.mod index 913f771c0..c37b50b0f 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module perkeep.org +go 1.12 + require ( bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 cloud.google.com/go v0.39.0 diff --git a/website/pk-web/pkweb.go b/website/pk-web/pkweb.go index 7f687d12a..86fc3b670 100644 --- a/website/pk-web/pkweb.go +++ b/website/pk-web/pkweb.go @@ -546,6 +546,7 @@ func gceDeployHandlerConfig() (*gce.Config, error) { // - neither CAMLI_GCE_CLIENTID is set, nor launcher-config.json is found in the // camlistore server config dir. func gceDeployHandler(prefix string) (*gce.DeployHandler, error) { + return nil, errors.New("The Perkeep Cloud Launcher is no longer available.") var hostPort string var err error scheme := "https" @@ -909,6 +910,7 @@ func main() { gceLauncher, err := gceDeployHandler("/launch/") if err != nil { log.Printf("Not installing GCE /launch/ handler: %v", err) + err := err mux.HandleFunc("/launch/", func(w http.ResponseWriter, r *http.Request) { http.Error(w, fmt.Sprintf("GCE launcher disabled: %v", err), 500) })