diff --git a/server/main.go b/server/main.go index 85b9c5a..7e9cf55 100644 --- a/server/main.go +++ b/server/main.go @@ -27,7 +27,7 @@ var ( s3Prefix = os.Getenv("S3_PREFIX") // S3 key prefix (may differ from hostname) ) -const VERSION = "1.1.0" +const VERSION = "1.1.1" // Terraform Registry Protocol Structs type Discovery struct { @@ -142,18 +142,113 @@ func rootHandler(w http.ResponseWriter, r *http.Request) { return } w.Header().Set("Content-Type", "text/html; charset=utf-8") - fmt.Fprintf(w, ` - - -Terra Registry v`+VERSION+` + fmt.Fprintf(w, ` + + + + +Terraform Registry · Nubes + + -

Terra Registry & Documentation Server v`+VERSION+`

-

Status: ONLINE

-
-

Powered by Nubes Cloud S3 Storage

+
+ + + +
+
+
+
Terraform Provider Registry
+
+
+ Статус + ONLINE +
+
+ Версия + v`+VERSION+` +
+
+ Discovery + /.well-known/terraform.json +
+
+ Провайдеры + /v1/providers/ +
+
+
+
+ - -`) +`) } func proxyHandler(w http.ResponseWriter, r *http.Request) {